test/interpolations_test.rb in thoughtbot-paperclip-2.3.0 vs test/interpolations_test.rb in thoughtbot-paperclip-2.3.1
- old
+ new
@@ -5,19 +5,23 @@
methods = Paperclip::Interpolations.all
assert ! methods.include?(:[])
assert ! methods.include?(:[]=)
assert ! methods.include?(:all)
methods.each do |m|
- assert Paperclip::Interpolations.respond_to? m
+ assert Paperclip::Interpolations.respond_to?(m)
end
end
should "return the RAILS_ROOT" do
assert_equal RAILS_ROOT, Paperclip::Interpolations.rails_root(:attachment, :style)
end
should "return the RAILS_ENV" do
assert_equal RAILS_ENV, Paperclip::Interpolations.rails_env(:attachment, :style)
+ end
+
+ should "return the class of the Interpolations module when called with no params" do
+ assert_equal Module, Paperclip::Interpolations.class
end
should "return the class of the instance" do
attachment = mock
attachment.expects(:instance).returns(attachment)