Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (15 sloc) 367 Bytes
require "spec_helper"
describe "be_new_record" do
context "un-persisted record" do
it "passes" do
record = double('record', :persisted? => false)
record.should be_new_record
end
end
context "persisted record" do
it "fails" do
record = double('record', :persisted? => true)
record.should_not be_new_record
end
end
end
Jump to Line
Something went wrong with that request. Please try again.