Commit 7f732ee5 by Jon Yurek

include is private sometimes

parent c160ae51
...@@ -14,7 +14,7 @@ describe Paperclip::Glue do ...@@ -14,7 +14,7 @@ describe Paperclip::Glue do
it "does not fail" do it "does not fail" do
NonActiveRecordModel = Class.new NonActiveRecordModel = Class.new
NonActiveRecordModel.include(Paperclip::Glue) NonActiveRecordModel.send :include, Paperclip::Glue
Object.send :remove_const, "NonActiveRecordModel" Object.send :remove_const, "NonActiveRecordModel"
end end
end end
...@@ -36,9 +36,9 @@ describe Paperclip::Glue do ...@@ -36,9 +36,9 @@ describe Paperclip::Glue do
end end
it "does not fail" do it "does not fail" do
Foo = Class.new NonActiveRecordModel = Class.new
Foo.include(Paperclip::Glue) NonActiveRecordModel.send :include, Paperclip::Glue
Object.send :remove_const, "Foo" Object.send :remove_const, "NonActiveRecordModel"
end end
end end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment