Revision bf5f1801
Added by Stephen Benjamin over 8 years ago
test/unit/provisioning_template_test.rb | ||
---|---|---|
assert_equal clone.template, tmplt.template
|
||
end
|
||
|
||
test "can instantiate a locked template" do
|
||
assert FactoryGirl.create(:provisioning_template, :locked => true)
|
||
end
|
||
|
||
test "should not edit a locked template" do
|
||
tmplt = templates(:locked)
|
||
tmplt.name = "something else"
|
Also available in: Unified diff
fixes #11619 - only check template changes when persisted