Sha256: cdb276c51c96f27505fdebe65d0099370c1eea0b3238cbf11ff54883350c0619

Contents?: true

Size: 350 Bytes

Versions: 4

Compression:

Stored size: 350 Bytes

Contents

RSpec.shared_examples :a_chatwork_api do |verb, resource, status = 200|
  it { should match_example(verb, resource, status) }

  it "works with block" do
    subject do |body, headers|
      aggregate_failures do
        expect(body).to match_example(verb, resource, status)
        expect(headers).to eq response_headers
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
chatwork-0.7.0 spec/support/examples/a_chatwork_api.rb
chatwork-0.6.2 spec/support/examples/a_chatwork_api.rb
chatwork-0.6.1 spec/support/examples/a_chatwork_api.rb
chatwork-0.6.0 spec/support/examples/a_chatwork_api.rb