0
0
zero/spec/unit/request/accepttype/each_spec.rb
2012-11-16 18:13:07 +01:00

11 lines
314 B
Ruby

require 'spec_helper'
describe Zero::Request::AcceptType, '#each' do
subject { Zero::Request::AcceptType.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