Sha256: 4c4eb7424e908f0e5d15daccd2774f349160221051b9924a78ecae7d8e79d794

Contents?: true

Size: 410 Bytes

Versions: 17

Compression:

Stored size: 410 Bytes

Contents

require 'spec_helper'

describe Attributor::Type do
  subject(:type) do
    Class.new { include Attributor::Type }
  end

  it 'raises an error for unimplemented example' do
    expect { type.example }.to raise_error(Attributor::AttributorException)
  end

  it 'raises an error for unimplemented valid_type?' do
    expect { type.valid_type?('foo') }.to raise_error(Attributor::AttributorException)
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
attributor-8.0 spec/types/type_spec.rb
attributor-7.1 spec/types/type_spec.rb
attributor-7.0 spec/types/type_spec.rb
attributor-6.5 spec/types/type_spec.rb
attributor-6.4 spec/types/type_spec.rb
attributor-6.3 spec/types/type_spec.rb
attributor-6.2 spec/types/type_spec.rb
attributor-6.1 spec/types/type_spec.rb
attributor-6.0 spec/types/type_spec.rb
attributor-5.7 spec/types/type_spec.rb
attributor-5.6 spec/types/type_spec.rb
attributor-5.5 spec/types/type_spec.rb
attributor-5.4 spec/types/type_spec.rb
attributor-5.3 spec/types/type_spec.rb
attributor-5.2.1 spec/types/type_spec.rb
attributor-5.2.0 spec/types/type_spec.rb
attributor-5.1.0 spec/types/type_spec.rb