Sha256: ba095bf0d7d3efd8adf7f04d2659792bd3b76cdbd7e2cbd9042072fa53875b97

Contents?: true

Size: 512 Bytes

Versions: 1

Compression:

Stored size: 512 Bytes

Contents

require_relative '../spec_helper'
require_relative '../../lib/kamerling/registration'

module Kamerling
  describe Registration do
    describe '#registered_at' do
      it 'defaults to the current time' do
        registered_at = Registration.new.registered_at
        assert registered_at.between?(Time.now - 1, Time.now + 1)
      end

      it 'defaults to the time of Registration’s creation' do
        Registration.new.registered_at.wont_equal Registration.new.registered_at
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kamerling-0.0.3 spec/kamerling/registration_spec.rb