Sha256: 704bb1ae130e3fb92dcec21db22bcd8fa72ecde1a38ebe04598f2e13839b9869

Contents?: true

Size: 568 Bytes

Versions: 20

Compression:

Stored size: 568 Bytes

Contents

require File.expand_path('../../../helper', __FILE__)

class Axiom::Types::PasswordTest < CC::Service::TestCase
  class TestConfiguration < CC::Service::Config
    attribute :password_attribute, Password
    attribute :string_attribute, String
  end

  def test_password_type_inference
    assert_equal(
      Axiom::Types::Password,
      TestConfiguration.attribute_set[:password_attribute].type
    )
  end

  def test_string_type_inference
    assert_equal(
      Axiom::Types::String,
      TestConfiguration.attribute_set[:string_attribute].type
    )
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
codeclimate-services-1.6.1 test/axiom/types/password_test.rb
codeclimate-services-1.6.0 test/axiom/types/password_test.rb
codeclimate-services-1.5.1 test/axiom/types/password_test.rb
codeclimate-services-1.5.0 test/axiom/types/password_test.rb
codeclimate-services-1.4.0 test/axiom/types/password_test.rb
codeclimate-services-1.3.0 test/axiom/types/password_test.rb
codeclimate-services-1.2.0 test/axiom/types/password_test.rb
codeclimate-services-1.1.0 test/axiom/types/password_test.rb
codeclimate-services-1.0.1 test/axiom/types/password_test.rb
codeclimate-services-1.0.0 test/axiom/types/password_test.rb
codeclimate-services-0.6.2 test/axiom/types/password_test.rb
codeclimate-services-0.6.1 test/axiom/types/password_test.rb
codeclimate-services-0.6.0 test/axiom/types/password_test.rb
codeclimate-services-0.5.3 test/axiom/types/password_test.rb
codeclimate-services-0.5.2 test/axiom/types/password_test.rb
codeclimate-services-0.5.1 test/axiom/types/password_test.rb
codeclimate-services-0.5.0 test/axiom/types/password_test.rb
codeclimate-services-0.4.1 test/axiom/types/password_test.rb
codeclimate-services-0.4.0 test/axiom/types/password_test.rb
codeclimate-services-0.3.0 test/axiom/types/password_test.rb