0
0
Fork 0

added spec for #each on Accept

This commit is contained in:
Gibheer 2012-11-14 22:04:01 +01:00
parent 66769af57a
commit cc831ff9df
1 changed files with 10 additions and 0 deletions

View File

@ -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