diff options
Diffstat (limited to 'spec/ruby/core/range/case_compare_spec.rb')
| -rw-r--r-- | spec/ruby/core/range/case_compare_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/ruby/core/range/case_compare_spec.rb b/spec/ruby/core/range/case_compare_spec.rb index 4a3faa3163..7a76487d68 100644 --- a/spec/ruby/core/range/case_compare_spec.rb +++ b/spec/ruby/core/range/case_compare_spec.rb @@ -10,4 +10,8 @@ describe "Range#===" do it_behaves_like :range_cover_and_include, :=== it_behaves_like :range_cover, :=== + + it "returns true on any value if begin and end are both nil" do + (nil..nil).should === 1 + end end |
