adding first integration for testing user diaries, as multiple controllers are required. more work required.

This commit is contained in:
Shaun McDonald 2008-11-09 19:51:56 +00:00
parent 4adeeb51ad
commit 5ed41857f7
2 changed files with 54 additions and 1 deletions

View file

@ -0,0 +1,28 @@
require 'test_helper'
class UserDiariesTest < ActionController::IntegrationTest
fixtures :users, :diary_entries
def test_showing_create_diary_entry
get '/user/test/diary/new'
assert_response 302
assert_redirected_to :controller => :user, :action => "login", :referer => "/user/test/diary/new"
#follow_redirect
# Now login
#post :login, :user_email => "test@openstreetmap.org", :user_password => "test"
#
#get :controller => :users, :action => :new
#assert_response :success
#print @response.to_yaml
#assert_select "html" do
# assert_select "body" do
# assert_select "div#content" do
# assert_select "form" do
# assert_select "input[id=diary_entry_title]"
# end
# end
# end
#end
end
end