summaryrefslogtreecommitdiffstats
path: root/test/functional/enumerations_controller_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/enumerations_controller_test.rb')
-rw-r--r--test/functional/enumerations_controller_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/enumerations_controller_test.rb b/test/functional/enumerations_controller_test.rb
index 626bc3196..0f189c00a 100644
--- a/test/functional/enumerations_controller_test.rb
+++ b/test/functional/enumerations_controller_test.rb
@@ -41,8 +41,8 @@ class EnumerationsControllerTest < ActionController::TestCase
assert_response :success
assert_template 'new'
assert_kind_of IssuePriority, assigns(:enumeration)
- assert_tag 'input', :attributes => {:name => 'enumeration[type]', :value => 'IssuePriority'}
- assert_tag 'input', :attributes => {:name => 'enumeration[name]'}
+ assert_select 'input[name=?][value=?]', 'enumeration[type]', 'IssuePriority'
+ assert_select 'input[name=?]', 'enumeration[name]'
end
def test_new_with_invalid_type_should_respond_with_404
@@ -71,7 +71,7 @@ class EnumerationsControllerTest < ActionController::TestCase
get :edit, :id => 6
assert_response :success
assert_template 'edit'
- assert_tag 'input', :attributes => {:name => 'enumeration[name]', :value => 'High'}
+ assert_select 'input[name=?][value=?]', 'enumeration[name]', 'High'
end
def test_edit_invalid_should_respond_with_404