Revision d575926a
Added by Alon Goldboim almost 9 years ago
test/functional/api/v2/architectures_controller_test.rb | ||
---|---|---|
assert_difference('Architecture.count') do
|
||
post :create, { :architecture => arch_i386 }
|
||
end
|
||
assert_response :success
|
||
assert_response :created
|
||
end
|
||
|
||
test "should update architecture" do
|
Also available in: Unified diff
Fixes #10356 - changed the POST/PUT RABL template to be the same as the GET template
HTTP response code standardized to 201 on create.