Skip to content

Instantly share code, notes, and snippets.

@thechrisoshow
Created September 2, 2009 15:54
Show Gist options
  • Save thechrisoshow/179783 to your computer and use it in GitHub Desktop.
Save thechrisoshow/179783 to your computer and use it in GitHub Desktop.
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
describe Event do
it "should be refillable if the event is floating and not complete" do
event = Event.new(:complete => false)
event.stub!(:floating?).and_return true
event.should be_refillable
end
it "should not be refillable if the event is not floating and not complete" do
event = Event.new(:complete => true)
event.stub!(:floating?).and_return false
event.should_not be_refillable
end
it "should not be refillable if the event is floating and complete" do
event = Event.new(:complete => true)
event.stub!(:floating?).and_return true
event.should_not be_refillable
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment