Sha256: 39d7cd33d1b966d07f9025dcd8ee8f5398800c8928cc3eef4f87f18bed224263
Contents?: true
Size: 787 Bytes
Versions: 4
Compression:
Stored size: 787 Bytes
Contents
require 'spec_helper' describe Zodiac::Finder do describe ".date_for" do it "generates correct dates" do subject.date_for(9, 27).should == DateTime.new(subject::YEAR, 9, 27) end it "generates correct dates even in leap year" do subject.date_for(2, 29).should == DateTime.new(2012, 2, 29) end end describe ".sign_for" do it "returns correct zodiac sign" do subject.sign_for(month: 9, day: 27).should == I18n.t('zodiac.libra') end end describe ".sign_id_for" do it "returns correct sign id" do subject.sign_id_for(month: 9, day: 27).should == 7 end end describe ".sign_symbol_for" do it "returns correct sign symbol" do subject.sign_symbol_for(month: 9, day: 27).should == :libra end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
zodiac-0.2.10 | spec/zodiac/finder_spec.rb |
zodiac-0.2.9 | spec/zodiac/finder_spec.rb |
zodiac-0.2.8 | spec/zodiac/finder_spec.rb |
zodiac-0.2.7 | spec/zodiac/finder_spec.rb |