Sha256: 352fedba6b9c3ae77223510bf3840c44d8b6dd099edd134b0123ef340ed3f631

Contents?: true

Size: 429 Bytes

Versions: 8

Compression:

Stored size: 429 Bytes

Contents

describe Axiom::Types::Token do
  class TestConfiguration < CC::Service::Config
    attribute :token_attribute, Token
    attribute :str_attribute, String
  end

  it "token type inference" do
    expect(Axiom::Types::Token).to eq(TestConfiguration.attribute_set[:token_attribute].type)
  end

  it "string type inference" do
    expect(Axiom::Types::String).to eq(TestConfiguration.attribute_set[:str_attribute].type)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
codeclimate-services-1.11.4 spec/axiom/types/token_spec.rb
codeclimate-services-1.11.3 spec/axiom/types/token_spec.rb
codeclimate-services-1.11.2 spec/axiom/types/token_spec.rb
codeclimate-services-1.11.1 spec/axiom/types/token_spec.rb
codeclimate-services-1.11.0 spec/axiom/types/token_spec.rb
codeclimate-services-1.10.1 spec/axiom/types/token_spec.rb
codeclimate-services-1.10.0 spec/axiom/types/token_spec.rb
codeclimate-services-1.9.8 spec/axiom/types/token_spec.rb