Skip to content
Browse files

Changed symbol to string for method name comparisons in should_have_a…

…ttached_file
  • Loading branch information...
1 parent 0d88f76 commit 339326dea09ab87c887d0ec9163030d07f6bf32a @jyurek jyurek committed Oct 15, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 shoulda_macros/paperclip.rb
View
2 shoulda_macros/paperclip.rb
@@ -4,7 +4,7 @@ def should_have_attached_file name, options = {}
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

0 comments on commit 339326d

Please sign in to comment.
Something went wrong with that request. Please try again.