Sha256: c79be3cc2d0e621d066f94f020947e5fcd81fff15b05d410fac74053732a4875

Contents?: true

Size: 230 Bytes

Versions: 13

Compression:

Stored size: 230 Bytes

Contents

require 'spec_helper'

describe 'expect_json_types lambda' do

	it 'should invoke proc passed in' do
    mock_get('simple_get')
    get '/simple_get'
    expect_json_types({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_types_lambda_spec.rb
airborne-0.1.14 spec/airborne/expectations/expect_json_types_lambda_spec.rb
airborne-0.1.13 spec/airborne/expectations/expect_json_types_lambda_spec.rb
airborne-0.1.12 spec/airborne/expectations/expect_json_types_lambda_spec.rb
airborne-0.1.11 spec/airborne/expectations/expect_json_types_lambda_spec.rb
airborne-0.1.10 spec/airborne/expectations/expect_json_types_lambda_spec.rb
airborne-0.1.9 spec/airborne/expectations/expect_json_types_lambda_spec.rb
airborne-0.1.8 spec/airborne/expectations/expect_json_types_lambda_spec.rb
airborne-0.1.7 spec/airborne/expectations/expect_json_types_lambda_spec.rb
airborne-0.1.6 spec/airborne/expectations/expect_json_types_lambda_spec.rb
airborne-0.1.5 spec/airborne/expectations/expect_json_types_lambda_spec.rb
airborne-0.1.4 spec/airborne/expectations/expect_json_types_lambda_spec.rb
airborne-0.1.3 spec/airborne/expectations/expect_json_types_lambda_spec.rb