Sha256: ea674db2ca600a602b70d7329d9b5a42993c7e4f6fea573cb029cba4785ffb91
Contents?: true
Size: 1.1 KB
Versions: 3
Compression:
Stored size: 1.1 KB
Contents
require File.expand_path('../spec_helper', __FILE__) describe IsItWorking::Status do let(:status){ IsItWorking::Status.new(:test) } it "should have a name" do status.name.should == :test end it "should have errors" do status.fail("boom") status.should_not be_success status.messages.size.should == 1 status.messages.first.should_not be_ok status.messages.first.message.should == "boom" end it "should have successes" do status.ok("wow") status.should be_success status.messages.size.should == 1 status.messages.first.should be_ok status.messages.first.message.should == "wow" end it "should have both errors and successes" do status.fail("boom") status.ok("wow") status.should_not be_success status.messages.size.should == 2 status.messages.first.should_not be_ok status.messages.first.message.should == "boom" status.messages.last.should be_ok status.messages.last.message.should == "wow" end it "should have a time" do status.time.should == nil status.time = 0.1 status.time.should == 0.1 end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
is_it_working-1.1.0 | spec/status_spec.rb |
is_it_working-1.0.11 | spec/status_spec.rb |
is_it_working-1.0.10 | spec/status_spec.rb |