Revision abd8f1d1
Added by Daniel Lobato Garcia over 9 years ago
test/functional/api/v2/compute_attributes_controller_test.rb | ||
---|---|---|
require 'test_helper'
|
||
|
||
class Api::V2::ComputeAttributesControllerTest < ActionController::TestCase
|
||
|
||
test "should create compute attribute" do
|
||
assert_difference('ComputeAttribute.count') do
|
||
valid_attrs = {:vm_attrs => {"cpus"=>"2", "memory"=>"2147483648"}}
|
||
... | ... | |
assert_response :success
|
||
assert_equal "4", compute_attributes(:two).reload.vm_attrs['cpus']
|
||
end
|
||
|
||
end
|
Also available in: Unified diff
Refs #3809 - Remove cops for empty lines