0
0
zero/spec/unit/request/accepttype/each_spec.rb

11 lines
314 B
Ruby
Raw Normal View History

2012-11-14 22:04:01 +01:00
require 'spec_helper'
2012-11-16 13:58:42 +01:00
describe Zero::Request::AcceptType, '#each' do
subject { Zero::Request::AcceptType.new(types) }
2012-11-14 22:04:01 +01:00
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