Revision feacea35
Added by Amos Benari about 11 years ago
- ID feacea35f07f362d9e2c694a83516bbc902321a0
test/unit/domain_test.rb | ||
---|---|---|
|
||
test "should not destroy if it contains subnets" do
|
||
|
||
as_admin do
|
||
Subnet.create! :network => "123.123.123.1", :mask => "255.255.255.0",
|
||
:domains => [@domain], :name => "test subnet"
|
||
end
|
||
assert @domain.subnets.empty?
|
||
@domain.subnets << Subnet.first
|
||
assert !@domain.destroy
|
||
assert_match /is used by/, @domain.errors.full_messages.join("\n")
|
||
end
|
Also available in: Unified diff
upgrade foreman to rails 3.2.13
This commit updates from rails 3.0.x to 3.2.x, main changes include:
Users who uses foreman in production, make sure that you now compile
your assets, e.g
rake assets:precompile
Paired-with: Joseph Mitchell Magen <jmagen@redhat.com>
Paired-with: Ohad Levy <ohadlevy@gmail.com>
Signed-off-by: Ohad Levy <ohadlevy@gmail.com>