From: Imre Farkas <ifarkas(a)redhat.com>
In the last test case of deployable_spec the xml is modified on the Deployable object and
somehow (probably a factory_girl bug) the modified xml attribute is cached in the
deployable factory. In catalog_entry_spec the modified deployable factory caused the
failures.
---
src/spec/models/deployable_spec.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/spec/models/deployable_spec.rb b/src/spec/models/deployable_spec.rb
index cf4bb1d..7e91ae2 100644
--- a/src/spec/models/deployable_spec.rb
+++ b/src/spec/models/deployable_spec.rb
@@ -34,7 +34,7 @@ describe Deployable do
it "should not be valid if xml is not parsable" do
deployable = FactoryGirl.build(:deployable)
deployable.should be_valid
- deployable.xml << "</deployable>"
+ deployable.xml = deployable.xml.clone << "</deployable>"
deployable.should_not be_valid
end
--
1.7.6.4