Skip to content

Commit ba33985

Browse files
committed
Merge branch 'fix_tests' into 'develop'
Fixes tests on Redmine 4.1 See merge request gtt/redmine_supply!7
2 parents a2b4954 + 07c4b6c commit ba33985

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 :ok
78+
assert_response :no_content
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 :ok
102+
assert_response :no_content
103103
assert_equal '', @response.body
104104
assert_nil SupplyItem.find_by_id(@item.id)
105105
end

0 commit comments

Comments
 (0)