Skip to content

Commit

Permalink
nifty_authentication: fixing a couple shoulda tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanb committed Nov 4, 2008
1 parent b2f9d39 commit 46f865d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

class <%= user_plural_class_name %>ControllerTest < ActionController::TestCase
context "new action" do
should "render new template"
should "render new template" do
get :new
assert_template 'new'
end
end
context "create action" do
should "render new template when model is invalid"
should "render new template when model is invalid" do
<%= user_class_name %>.any_instance.stubs(:valid?).returns(false)
post :create
assert_template 'new'
Expand Down

0 comments on commit 46f865d

Please sign in to comment.