html reset
This commit is contained in:
@ -64,7 +64,7 @@ module Admin
|
||||
assert_redirected_to admin_question_path(question.to_i)
|
||||
|
||||
get admin_question_path question.to_i
|
||||
assert_select 'p', 'foo bar baz'
|
||||
assert_select 'div', 'foo bar baz'
|
||||
end
|
||||
|
||||
test "should post attachment" do
|
||||
|
@ -40,7 +40,7 @@ module Admin
|
||||
quiz = quizzes :fed
|
||||
get admin_quiz_url quiz.to_i
|
||||
assert_response :success
|
||||
assert_select 'p', quiz.dept
|
||||
assert_select 'div', quiz.dept
|
||||
end
|
||||
|
||||
test "should get edit" do
|
||||
@ -56,7 +56,7 @@ module Admin
|
||||
assert_redirected_to admin_quiz_path(quiz.to_i)
|
||||
|
||||
get admin_quiz_path quiz.to_i
|
||||
assert_select 'p', 'another'
|
||||
assert_select 'div', 'another'
|
||||
end
|
||||
|
||||
test "should fail to update quiz" do
|
||||
|
@ -44,7 +44,7 @@ module Admin
|
||||
user = users(:recruiter)
|
||||
get admin_user_url user.to_i
|
||||
assert_response :success
|
||||
assert_select 'p', user.name
|
||||
assert_select 'div', user.name
|
||||
end
|
||||
|
||||
test "should get edit" do
|
||||
@ -62,7 +62,7 @@ module Admin
|
||||
assert_redirected_to admin_user_path(user.to_i)
|
||||
|
||||
get admin_user_url user.to_i
|
||||
assert_select 'p', 'new name'
|
||||
assert_select 'div', 'new name'
|
||||
end
|
||||
|
||||
test "should fail to update user" do
|
||||
|
Reference in New Issue
Block a user