public
Description: Rails Plugin - a RailsEngines-based CMS extension for any Rails project
Homepage: http://6brand.com
Clone URL: git://github.com/JackDanger/simple_pages.git
Search Repo:
added a test for the edit action

git-svn-id: http://svn.6brand.com/projects/plugins/simple_pages@318 
7491b73d-821b-0410-9297-ad1f6b5b4194
studioda (author)
Thu Feb 22 21:24:26 -0800 2007
commit  43825e1caa1777f919054f429e4a814afbb376e9
tree    18ec486c88ce0278fe216e6bceb778e03ddd2949
parent  382188b51a65726053defe5912e91230143854b8
...
31
32
33
 
 
 
 
 
 
 
34
35
36
...
31
32
33
34
35
36
37
38
39
40
41
42
43
0
@@ -31,6 +31,13 @@
0
     assert assigns(:simple_page).new_record?
0
   end
0
   
0
+ def test_edit
0
+ test_create # put something in the db again
0
+ get :edit, :id => 'test_create'
0
+ assert_response :success
0
+ assert !assigns(:simple_page).new_record?
0
+ end
0
+
0
   def test_show
0
     sp = SimplePage.create(:filename => 'test_show', :title => 'Test Show', :content => '<h1>Content!</h1>')
0
     get :show, :id => 'test_show'

Comments

    No one has commented yet.