Sha256: 33178ab0640b127a29462e0579e7bb8b8e758d5c0ad6cd14f9b18b2d25e23f77
Contents?: true
Size: 930 Bytes
Versions: 3
Compression:
Stored size: 930 Bytes
Contents
require 'spec_helper' describe Reparty do it "should have a version number" do Reparty::VERSION.should_not be_nil end it "configures properly" do Reparty.config do |config| config.sender = "test@test.com" end Reparty.configuration.sender.should == "test@test.com" end describe "adds reports" do subject do Reparty.config do |config| config.add_report Reparty::Report, "Some Report" config.add_weekly_report Reparty::Report, "Some Weekly Report" end Reparty end its("reports.first") { should be_kind_of(Reparty::Report) } its("reports.first.title") { should == "Some Report" } its("reports.size") { should == 1 } its("weekly_reports.first") { should be_kind_of(Reparty::Report) } its("weekly_reports.first.title") { should == "Some Weekly Report" } its("weekly_reports.size") { should == 1 } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
reparty-0.5.2 | spec/reparty_spec.rb |
reparty-0.5.1 | spec/reparty_spec.rb |
reparty-0.5.0 | spec/reparty_spec.rb |