diff options
Diffstat (limited to 'spec/ruby/core/dir/each_spec.rb')
| -rw-r--r-- | spec/ruby/core/dir/each_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/dir/each_spec.rb b/spec/ruby/core/dir/each_spec.rb index 7674663d82..e997e340b1 100644 --- a/spec/ruby/core/dir/each_spec.rb +++ b/spec/ruby/core/dir/each_spec.rb @@ -32,7 +32,7 @@ describe "Dir#each" do @dir.each {}.should == @dir @dir.read.should == nil @dir.rewind - ls.should include(@dir.read) + ls.should.include?(@dir.read) end it "returns the same result when called repeatedly" do @@ -48,7 +48,7 @@ describe "Dir#each" do describe "when no block is given" do it "returns an Enumerator" do - @dir.each.should be_an_instance_of(Enumerator) + @dir.each.should.instance_of?(Enumerator) @dir.each.to_a.sort.should == DirSpecs.expected_paths end |
