Sha256: 3bfa56312d5651bebbf7686d7052a8006ec4816a9e5da07ecfe33478841b1ae5
Contents?: true
Size: 420 Bytes
Versions: 1
Compression:
Stored size: 420 Bytes
Contents
require 'spec_helper' describe Cal::Month do subject { Cal::Month.new @calendar } before do @calendar = OpenStruct.new end describe "name" do it "is the name of the month" do [ [Date.parse('2012-01-21'), 'January'], [Date.parse('2012-02-21'), 'February'] ].each do |date, name| @calendar.date = date subject.name.should == name end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cal-0.0.1 | spec/cal/month_spec.rb |