Skip to content
Browse files

ruby 1.8 uses strings, 1.9 symbols

  • Loading branch information...
1 parent f4efada commit 0102504e1c5053cf40c6b542f0c9f3a47202aa6b @dchelimsky dchelimsky committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rspec/matchers/matcher.rb
View
2 lib/rspec/matchers/matcher.rb
@@ -35,7 +35,7 @@ def initialize(name, &declarations)
# @api private
def for_expected(*expected)
instance_variables.each do |ivar|
- instance_variable_set(ivar, nil) unless PERSISENT_INSTANCE_VARIABLES.include?(ivar)
+ instance_variable_set(ivar, nil) unless PERSISENT_INSTANCE_VARIABLES.include?(ivar.intern)
end
@expected = expected
making_declared_methods_public do

0 comments on commit 0102504

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