Skip to content

Commit f9177ed

Browse files
committed
Fixes tests on both Redmine 4.0 and 4.1
1 parent ba33985 commit f9177ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/integration/supply_items_api_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class SupplyItemsApiTest < Redmine::ApiTest::Base
7575
params: {supply_item: {name: 'new name', custom_field_values: {@unit.id => 'm'}}},
7676
:headers => credentials('jsmith')
7777
end
78-
assert_response :no_content
78+
assert_response :success
7979
assert_equal '', @response.body
8080
item = SupplyItem.find @item.id
8181
assert_equal 'new name', item.name
@@ -99,7 +99,7 @@ class SupplyItemsApiTest < Redmine::ApiTest::Base
9999
delete "/projects/ecookbook/supply_items/#{@item.id}.xml",
100100
:headers => credentials('jsmith')
101101
end
102-
assert_response :no_content
102+
assert_response :success
103103
assert_equal '', @response.body
104104
assert_nil SupplyItem.find_by_id(@item.id)
105105
end

0 commit comments

Comments
 (0)