@@ -49,8 +49,8 class EnumerationsControllerTest < ActionController::TestCase | |||||
49 | post :create, :enumeration => {:type => 'IssuePriority', :name => 'Lowest'} |
|
49 | post :create, :enumeration => {:type => 'IssuePriority', :name => 'Lowest'} | |
50 | end |
|
50 | end | |
51 | assert_redirected_to '/enumerations?type=IssuePriority' |
|
51 | assert_redirected_to '/enumerations?type=IssuePriority' | |
52 |
e = IssuePriority.fi |
|
52 | e = IssuePriority.find_by_name('Lowest') | |
53 | assert_equal 'Lowest', e.name |
|
53 | assert_not_nil e | |
54 | end |
|
54 | end | |
55 |
|
55 | |||
56 | def test_create_with_failure |
|
56 | def test_create_with_failure |
General Comments 0
You need to be logged in to leave comments.
Login now