Sha256: 7182e06bbf43b8b2c19ecd5870c93135004eb2bbb6c5603ddacb47a709d5f4d1

Contents?: true

Size: 269 Bytes

Versions: 6

Compression:

Stored size: 269 Bytes

Contents

shared_examples_for 'equals input' do |input|
  subject{ klass[ input ] }
  it{ is_expected.to eq input }
end

shared_examples_for 'raises ConstraintError' do |input|
  subject{ ->{ klass[ input ] } }
  it{ is_expected.to raise_error(Dry::Types::ConstraintError) }
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fortnox-api-0.5.2 spec/fortnox/api/types/examples/types.rb
fortnox-api-0.5.1 spec/fortnox/api/types/examples/types.rb
fortnox-api-0.5.0 spec/fortnox/api/types/examples/types.rb
fortnox-api-0.4.0 spec/fortnox/api/types/examples/types.rb
fortnox-api-0.3.0 spec/fortnox/api/types/examples/types.rb
fortnox-api-0.2.0 spec/fortnox/api/types/examples/types.rb