Displaying 1 result from an estimated 1 matches for "build_clon".
Did you mean:
build_clone
2007 Sep 10
2
Removing an AR class definition, for testing plugins
...neable, " basic cloning" do
load_example_classes
School.class_eval do
acts_as_cloneable
end
before(:each) do
@old_school = School.create! :name => "Baylake Pines", :city =>
"Virginia Beach", :guid => "abc123"
@clone = @old_school.build_clone
end
it "should preserve the attributes" do
@clone.name.should == "Baylake Pines"
@clone.city.should == "Virginia Beach"
@clone.guid.should == "abc123"
end
it "should not clone the id" do
@clone.id.should be_blank
end
end...