Skip to content

Commit

Permalink
Fix logic for #ruby_bug
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Apr 2, 2020
1 parent 16b5a0a commit e7eb8aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mspec/guards/bug.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ def initialize(bug, requirement)
@bug = bug
if String === requirement
MSpec.deprecate "ruby_bug with a single version", 'an exclusive range ("2.1"..."2.3")'
@requirement = SpecVersion.new requirement, true
super(FULL_RUBY_VERSION, requirement)
@requirement = SpecVersion.new requirement, true
else
super(FULL_RUBY_VERSION, requirement)
end
Expand Down

0 comments on commit e7eb8aa

Please sign in to comment.