Skip to content

Commit

Permalink
add spec for Range#=== to behave like Range#cover? in Ruby 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
lxxxvi committed Oct 10, 2020
1 parent ac60ece commit 6feb48b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/range/case_compare_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,9 @@
(range === RangeSpecs::WithoutSucc.new(2)).should == true
end
end

ruby_version_is "2.7" do
it_behaves_like :range_cover_and_include, :cover?
it_behaves_like :range_cover, :cover?
end
end

0 comments on commit 6feb48b

Please sign in to comment.