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