Sha256: 90d0880a84abddaa523c52cebf869db0054d7879cc231fd9c1639cc674ba60ff
Contents?: true
Size: 968 Bytes
Versions: 3
Compression:
Stored size: 968 Bytes
Contents
require 'spec_helper' describe Lunartic::Moon do let(:subject) { Lunartic::Moon.new(Date.new(1989, 12, 28)) } describe '#initialize' do it 'should return a Lunartic::Moon' do expect(subject).to be_a Lunartic::Moon end end describe '#day' do it 'should return a fixnum' do expect(subject.day).to be_a Fixnum end it 'should return the correct cycle day for the given date' do test_method_against_fixtures :day end end describe '#percent_full' do it 'should return a float' do expect(subject.percent_full).to be_a Float end it 'should return the correct percentage full for the given date' do test_method_against_fixtures :percent_full end end describe '#phase' do it 'should return a symbol' do expect(subject.phase).to be_a Symbol end it 'should return the correct moon phase for a given date' do test_method_against_fixtures :phase end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lunartic-0.2.1 | spec/moon_spec.rb |
lunartic-0.2.0 | spec/moon_spec.rb |
lunartic-0.1.0 | spec/moon_spec.rb |