Sha256: dbe58b35bb0dcb091cac4a3328d89e90169a3f056eb34934ceb172799df282ce

Contents?: true

Size: 492 Bytes

Versions: 4

Compression:

Stored size: 492 Bytes

Contents

require 'test_helper'

class TestAPIObject < MiniTest::Unit::TestCase
  def setup
    @object = Coop::APIObject.new({
      test: true,
      name: "object",
      value: "APIObject",
      arbitrary_key: "this"
    })
  end
  
  def test_new
    assert_instance_of Coop::APIObject, @object
  end
  
  def test_mash
    assert_equal true, @object.test
    assert_equal "object", @object.name
    assert_equal "APIObject", @object.value
    assert_equal "this", @object.arbitrary_key
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
coop-1.1.1 test/coop/test_api_object.rb
coop-1.1.0 test/coop/test_api_object.rb
coop-1.0.1 test/coop/test_api_object.rb
coop-1.0.0 test/coop/test_api_object.rb