Skip to content

Commit

Permalink
Added spec to make sure we create a new resource object
Browse files Browse the repository at this point in the history
  • Loading branch information
baphled committed May 14, 2010
1 parent 59aaede commit 0689fa9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/controllers/parking_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,11 @@
end
end
end

describe "GET, new" do
it "should create a new resource model" do
Resource.should_receive(:new)
get :new
end
end
end

0 comments on commit 0689fa9

Please sign in to comment.