Sha256: 7334cd2c47cd3ac6e3863e49fbf74a582fc5bb4db8906a459ecee846b3813003

Contents?: true

Size: 221 Bytes

Versions: 13

Compression:

Stored size: 221 Bytes

Contents

require 'spec_helper'

describe 'expect_json lambda' do

  it 'should invoke proc passed in' do
    mock_get('simple_get')
    get '/simple_get'
    expect_json({name: ->(name){expect(name.length).to eq(4)}})
  end
  
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
airborne-0.1.15 spec/airborne/expectations/expect_json_lambda_spec.rb
airborne-0.1.14 spec/airborne/expectations/expect_json_lambda_spec.rb
airborne-0.1.13 spec/airborne/expectations/expect_json_lambda_spec.rb
airborne-0.1.12 spec/airborne/expectations/expect_json_lambda_spec.rb
airborne-0.1.11 spec/airborne/expectations/expect_json_lambda_spec.rb
airborne-0.1.10 spec/airborne/expectations/expect_json_lambda_spec.rb
airborne-0.1.9 spec/airborne/expectations/expect_json_lambda_spec.rb
airborne-0.1.8 spec/airborne/expectations/expect_json_lambda_spec.rb
airborne-0.1.7 spec/airborne/expectations/expect_json_lambda_spec.rb
airborne-0.1.6 spec/airborne/expectations/expect_json_lambda_spec.rb
airborne-0.1.5 spec/airborne/expectations/expect_json_lambda_spec.rb
airborne-0.1.4 spec/airborne/expectations/expect_json_lambda_spec.rb
airborne-0.1.3 spec/airborne/expectations/expect_json_lambda_spec.rb