still figuring out git
[custlog.git] / test / integration / entry_stories_test.rb
blob96fb14946715719334a88db8eb3d96c00adb08f1
1 require "#{File.dirname(__FILE__)}/../test_helper"
3 class EntryStoriesTest < ActionController::IntegrationTest
4   
5   def test_create_new_entry
6     get "/entries/new"
7     assert_response :success
8     assert_template "new"
9   end
10   
11   def test_edit_entry
12     get "/entries/edit/#{entries(:one).id}"
13     assert_response :success
14     assert_template "edit"
15     
16     post "/entries/update", :id => entries(:one).id, :complaint => "test complaint", :resolution => "test resolution"
17     assert_response :redirect
18     follow_redirect!
19     assert_response :success
20     assert_template "show"
21   end
22   
23 end