Sha256: 896320fb6e38a36f1d84454d9982a1066341185b64c408d12312cc34ccda00c0

Contents?: true

Size: 294 Bytes

Versions: 15

Compression:

Stored size: 294 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

15 entries across 15 versions & 2 rubygems

Version Path
maestrano-0.12.4 test/maestrano/open_struct_test.rb
maestrano-0.12.3 test/maestrano/open_struct_test.rb
maestrano-0.12.2 test/maestrano/open_struct_test.rb
maestrano-0.12.1 test/maestrano/open_struct_test.rb
maestrano-0.12.0 test/maestrano/open_struct_test.rb
maestrano-0.11.0 test/maestrano/open_struct_test.rb
maestrano-0.10.0 test/maestrano/open_struct_test.rb
maestrano-0.9.2 test/maestrano/open_struct_test.rb
maestrano-0.9.1 test/maestrano/open_struct_test.rb
maestrano-0.9.0 test/maestrano/open_struct_test.rb
maestrano-ruby-test-0.8.3 test/maestrano/open_struct_test.rb
maestrano-0.8.2 test/maestrano/open_struct_test.rb
maestrano-0.8.1 test/maestrano/open_struct_test.rb
maestrano-0.8.0 test/maestrano/open_struct_test.rb
maestrano-0.7.0 test/maestrano/open_struct_test.rb