public
Description: A collection of useful Rails generator scripts.
Clone URL: git://github.com/ryanb/nifty-generators.git
changing wording on some scaffold specs
ryanb (author)
Mon Jul 21 08:59:20 -0700 2008
commit  8e0902f715fee1a71955da31cce037d01266935a
tree    a5bef0cd444705ef0773247a4a7ee5a26ea0dd1e
parent  21a438f33cbe10a1657589141829e31d83160af5
...
4
5
6
7
 
8
9
10
...
4
5
6
 
7
8
9
10
0
@@ -4,7 +4,7 @@
0
     response.should render_template(:new)
0
   end
0
   
0
- it "create action should redirect to index action when model is valid" do
0
+ it "create action should redirect when model is valid" do
0
     <%= class_name %>.any_instance.stubs(:valid?).returns(true)
0
     post :create
0
     response.should redirect_to(<%= item_path_for_spec('url') %>)
...
4
5
6
7
 
8
9
10
...
4
5
6
 
7
8
9
10
0
@@ -4,7 +4,7 @@
0
     response.should render_template(:edit)
0
   end
0
   
0
- it "update action should redirect to show action when model is valid" do
0
+ it "update action should redirect when model is valid" do
0
     <%= class_name %>.any_instance.stubs(:valid?).returns(true)
0
     put :update, :id => <%= class_name %>.first
0
     response.should redirect_to(<%= item_path_for_spec('url') %>)

Comments

    No one has commented yet.