Sha256: a0d60b2988d841609c1dcc89cfe8ea1dd3cd539274e03153ce8981bda62cdd7a
Contents?: true
Size: 418 Bytes
Versions: 1
Compression:
Stored size: 418 Bytes
Contents
require 'spec_helper' describe Cal do subject { described_class } describe "new_monthly_calendar" do it "creates a new monthly calendar with the given args" do @args = [1, 2, 3] monthly_calendar = Object.new Cal::MonthlyCalendar.stub :new do |*args| monthly_calendar if args == @args end subject.new_monthly_calendar(*@args).should == monthly_calendar end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cal-0.6.1 | spec/cal_spec.rb |