Sha256: 9516312c8911d23ae1cbb6cd194b0e319fe709880a5ef729d01fdc7e8ce2b930
Contents?: true
Size: 533 Bytes
Versions: 5
Compression:
Stored size: 533 Bytes
Contents
require 'spec_helper' describe 'expect_json_keys' do it 'should fail when json keys are missing' do mock_get('simple_json') get '/simple_json', {} expect { expect_json_keys([:foo, :bar, :baz, :bax]) }.to raise_error end it 'should ensure correct json keys' do mock_get('simple_json') get '/simple_json', {} expect_json_keys([:foo, :bar, :baz]) end it 'should ensure correct partial json keys' do mock_get('simple_json') get '/simple_json', {} expect_json_keys([:foo, :bar]) end end
Version data entries
5 entries across 5 versions & 1 rubygems