aboutsummaryrefslogtreecommitdiff
path: root/spec/unit/request/accept/each_spec.rb
blob: 9452be3de861745d56d0e9016c7bc94a7622e33b (plain) (blame)
1
2
3
4
5
6
7
8
9
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