Skip to content
Browse files

Forgot to add spec

  • Loading branch information...
1 parent e431638 commit a20a1d9ac68f6ca58363a31ca054fbb835815a9d @baphled committed
Showing with 5 additions and 2 deletions.
  1. +5 −2 spec/controllers/projects_controller_spec.rb
View
7 spec/controllers/projects_controller_spec.rb
@@ -22,12 +22,15 @@
context "an invalid project" do
before(:each) do
- @project.stub!(:save).and_return false
+ @project.stub!(:title).and_return nil
+
+ #@project.stub!(:save).and_return true
post :create
end
it "should not save the story" do
- @project.save.should eql false
+ @project.title.should eql nil
+ @project.save.should_not eql true
end
end

0 comments on commit a20a1d9

Please sign in to comment.
Something went wrong with that request. Please try again.