Commit b0228c2b authored by jplang's avatar jplang

Create fixture correctly.

git-svn-id: https://svn.redmine.org/redmine/trunk@17488 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent e8293803
...@@ -68,7 +68,7 @@ class EnumerationsControllerTest < Redmine::ControllerTest ...@@ -68,7 +68,7 @@ class EnumerationsControllerTest < Redmine::ControllerTest
end end
def test_create_with_custom_field_values def test_create_with_custom_field_values
custom_field = CustomField.generate!(:type => "TimeEntryActivityCustomField") custom_field = TimeEntryActivityCustomField.generate!
assert_difference 'TimeEntryActivity.count' do assert_difference 'TimeEntryActivity.count' do
post :create, :params => { post :create, :params => {
:enumeration => { :enumeration => {
...@@ -152,7 +152,7 @@ class EnumerationsControllerTest < Redmine::ControllerTest ...@@ -152,7 +152,7 @@ class EnumerationsControllerTest < Redmine::ControllerTest
end end
def test_update_custom_field_values def test_update_custom_field_values
custom_field = CustomField.generate!(:type => "TimeEntryActivityCustomField") custom_field = TimeEntryActivityCustomField.generate!
enumeration = Enumeration.find(9) enumeration = Enumeration.find(9)
assert_nil enumeration.custom_field_values.last.value assert_nil enumeration.custom_field_values.last.value
put :update, :params => { put :update, :params => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment