3 class UserDiariesTest < ActionController::IntegrationTest
4 fixtures :users, :diary_entries
6 def test_showing_create_diary_entry
7 get '/user/test/diary/new'
9 assert_redirected_to :controller => :user, :action => "login", :referer => "/user/test/diary/new"
12 #post :login, :user_email => "test@openstreetmap.org", :user_password => "test"
14 #get :controller => :users, :action => :new
15 #assert_response :success
16 #print @response.to_yaml
17 #assert_select "html" do
18 # assert_select "body" do
19 # assert_select "div#content" do
20 # assert_select "form" do
21 # assert_select "input[id=diary_entry_title]"