Sha256: 9d9d754866922c25e8d03ffe65b2e8a7c5f4af3f5f8c9e496f31ff84b5c7e6b3

Contents?: true

Size: 296 Bytes

Versions: 17

Compression:

Stored size: 296 Bytes

Contents

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

module Maestrano
  class MaestranoOpenStructTest < Test::Unit::TestCase
    should "return the right attributes" do
      o = Maestrano::OpenStruct.new(bla: 'hello', ha: 'yo')
      assert_equal [:bla, :ha], o.attributes
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
maestrano-1.0.6 test/maestrano/open_struct_test.rb
maestrano-1.0.5 test/maestrano/open_struct_test.rb
maestrano-1.0.4 test/maestrano/open_struct_test.rb
maestrano-1.0.3 test/maestrano/open_struct_test.rb
maestrano-1.0.2 test/maestrano/open_struct_test.rb
maestrano-1.0.1 test/maestrano/open_struct_test.rb
maestrano-1.0.0 test/maestrano/open_struct_test.rb
maestrano-1.0.0.pre.RC9 test/maestrano/open_struct_test.rb
maestrano-1.0.0.pre.RC8 test/maestrano/open_struct_test.rb
maestrano-1.0.0.pre.RC7 test/maestrano/open_struct_test.rb
maestrano-1.0.0.pre.RC6 test/maestrano/open_struct_test.rb
maestrano-1.0.0.pre.RC5 test/maestrano/open_struct_test.rb
maestrano-1.0.0.pre.RC4 test/maestrano/open_struct_test.rb
maestrano-1.0.0.pre.RC3 test/maestrano/open_struct_test.rb
maestrano-1.0.0.pre.RC2 test/maestrano/open_struct_test.rb
maestrano-1.0.0.pre.RC1 test/maestrano/open_struct_test.rb
maestrano-0.12.5 test/maestrano/open_struct_test.rb