summaryrefslogtreecommitdiff
path: root/spec/ruby/core/set/delete_if_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/set/delete_if_spec.rb')
-rw-r--r--spec/ruby/core/set/delete_if_spec.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/spec/ruby/core/set/delete_if_spec.rb b/spec/ruby/core/set/delete_if_spec.rb
index beda73a5e5..b231dff50d 100644
--- a/spec/ruby/core/set/delete_if_spec.rb
+++ b/spec/ruby/core/set/delete_if_spec.rb
@@ -13,25 +13,25 @@ describe "Set#delete_if" do
it "deletes every element from self for which the passed block returns true" do
@set.delete_if { |x| x.size == 3 }
- @set.size.should eql(1)
+ @set.size.should.eql?(1)
- @set.should_not include("one")
- @set.should_not include("two")
- @set.should include("three")
+ @set.should_not.include?("one")
+ @set.should_not.include?("two")
+ @set.should.include?("three")
end
it "returns self" do
- @set.delete_if { |x| x }.should equal(@set)
+ @set.delete_if { |x| x }.should.equal?(@set)
end
it "returns an Enumerator when passed no block" do
enum = @set.delete_if
- enum.should be_an_instance_of(Enumerator)
+ enum.should.instance_of?(Enumerator)
enum.each { |x| x.size == 3 }
- @set.should_not include("one")
- @set.should_not include("two")
- @set.should include("three")
+ @set.should_not.include?("one")
+ @set.should_not.include?("two")
+ @set.should.include?("three")
end
end