Sha256: 632952b1bbe977cc35abd090351775219fcf20f5fa79cc95da7d57b238e69167

Contents?: true

Size: 371 Bytes

Versions: 2

Compression:

Stored size: 371 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe DarianCalendar do

  describe 'class methods' do

    describe '#now' do
      it 'returns current mars time' do
        earth = Time.utc(2012, 10, 15, 16, 50, 0)
        Time.should_receive(:now).and_return(earth)
        DarianCalendar.now.should == DarianCalendar::Time.from_earth(earth)
      end
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
darian_calendar-0.2 spec/darian_calendar_spec.rb
darian_calendar-0.1.0 spec/darian_calendar_spec.rb