added spec for #each on Accept
This commit is contained in:
parent
66769af57a
commit
cc831ff9df
|
@ -0,0 +1,10 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe Zero::Request::Accept, '#each' do
|
||||
subject { Zero::Request::Accept.new(types) }
|
||||
let(:html) { 'text/html' }
|
||||
let(:json) { 'application/json' }
|
||||
let(:types) { [html, json].join(',') }
|
||||
|
||||
specify { expect {|b| subject.each(&b) }.to yield_successive_args(html, json) }
|
||||
end
|
Loading…
Reference in New Issue