get context list scenario passing

This commit is contained in:
Reinier Balt 2012-05-01 09:39:53 +02:00
parent c9d64e6f4b
commit 7bce774daa
9 changed files with 29 additions and 36 deletions

View file

@ -19,6 +19,12 @@ class ContextsControllerTest < ActionController::TestCase
get :show, { :id => "1" }
assert_template "contexts/show"
end
def test_get_edit_form_using_xhr
login_as(:admin_user)
xhr :get, :edit, :id => contexts(:errand).id
assert_response 200
end
def test_create_context_via_ajax_increments_number_of_context
login_as :other_user