Browse files

Merge pull request #521 from AlexKVal/metadata

remove unreachable code
  • Loading branch information...
2 parents 33e835a + 9589b68 commit f33faedf184aff428585e9ed5989df0e074225f0 @dchelimsky dchelimsky committed Dec 2, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/rspec/core/metadata.rb
View
3 lib/rspec/core/metadata.rb
@@ -219,7 +219,7 @@ def configure_for_example(description, user_metadata)
def ensure_valid_keys(user_metadata)
RESERVED_KEYS.each do |key|
- if user_metadata.keys.include?(key)
+ if user_metadata.has_key?(key)
raise <<-EOM
#{"*"*50}
:#{key} is not allowed
@@ -234,7 +234,6 @@ def ensure_valid_keys(user_metadata)
#{RESERVED_KEYS.join("\n ")}
#{"*"*50}
EOM
- raise ":#{key} is not allowed"
end
end
end

0 comments on commit f33faed

Please sign in to comment.