Commit 339326de by Jon Yurek

Changed symbol to string for method name comparisons in should_have_attached_file

parent 0d88f764
......@@ -4,7 +4,7 @@ module Paperclip
klass = self.name.gsub(/Test$/, '').constantize
context "Class #{klass.name} with attachment #{name}" do
should "respond to all the right methods" do
[name, "#{name}=", "#{name}?"].each do |meth|
["#{name}", "#{name}=", "#{name}?"].each do |meth|
assert klass.instance_methods.include?(meth), "#{klass.name} does not respond to #{name}."
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