mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-25 19:48:48 +01:00
get context list scenario passing
This commit is contained in:
parent
c9d64e6f4b
commit
7bce774daa
9 changed files with 29 additions and 36 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue