Sha256: f7f93bc2a3b2ef48b0cfe4e7635d2d87bfc6cffff95553e4bf27375969a4be57

Contents?: true

Size: 231 Bytes

Versions: 3

Compression:

Stored size: 231 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

3 entries across 3 versions & 1 rubygems

Version Path
airborne-0.1.2 spec/airborne/expectations/expect_json_types_lambda_spec.rb
airborne-0.1.1 spec/airborne/expectations/expect_json_types_lambda_spec.rb
airborne-0.0.23 spec/airborne/expectations/expect_json_types_lambda_spec.rb