Sha256: 9711ec47d02116adfc02de8e10358fa727fc83526e07547908d951af42f54b05

Contents?: true

Size: 723 Bytes

Versions: 17

Compression:

Stored size: 723 Bytes

Contents

require 'test_helper'

class CollectionTest < Test::Unit::TestCase
  
  context 'GeoCerts::Collection' do
    
    should 'carry a start_at attribute' do
      collection  = GeoCerts::Collection.new
      time        = Time.now
      assert_respond_to(collection, :start_at=)
      assert_respond_to(collection, :start_at)
      collection.start_at = time
      assert_equal(time, collection.start_at)
    end
    
    should 'carry an end_at attribute' do
      collection  = GeoCerts::Collection.new
      time        = Time.now
      assert_respond_to(collection, :end_at=)
      assert_respond_to(collection, :end_at)
      collection.end_at = time
      assert_equal(time, collection.end_at)
    end
    
  end
  
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
geocerts-1.0.1 test/units/collection_test.rb
geocerts-1.0.0 test/units/collection_test.rb
geocerts-0.0.25 test/units/collection_test.rb
geocerts-0.0.24 test/units/collection_test.rb
geocerts-0.0.23 test/units/collection_test.rb
geocerts-0.0.22 test/units/collection_test.rb
geocerts-0.0.21 test/units/collection_test.rb
geocerts-0.0.20 test/units/collection_test.rb
geocerts-0.0.19 test/units/collection_test.rb
geocerts-0.0.18 test/units/collection_test.rb
geocerts-0.0.17 test/units/collection_test.rb
geocerts-0.0.16 test/units/collection_test.rb
geocerts-0.0.15 test/units/collection_test.rb
geocerts-0.0.14 test/units/collection_test.rb
geocerts-0.0.13 test/units/collection_test.rb
geocerts-0.0.12 test/units/collection_test.rb
geocerts-0.0.11 test/units/collection_test.rb