- new_title = "New Title"
- new_body = "This is a new body for the diary entry"
- new_latitude = "1.1"
- new_longitude = "2.2"
- new_language_code = "en"
+ def test_new_get_with_params
+ # Now try creating a diary entry using get
+ assert_difference "DiaryEntry.count", 0 do
+ get :new,
+ :params => { :commit => "save",
+ :diary_entry => { :title => "New Title", :body => "This is a new body for the diary entry", :latitude => "1.1",
+ :longitude => "2.2", :language_code => "en" } },
+ :session => { :user => create(:user).id }
+ end
+ assert_response :success
+ assert_template :edit
+ end