summaryrefslogtreecommitdiff
path: root/spec/ruby/core/dir/shared/pos.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/dir/shared/pos.rb')
-rw-r--r--spec/ruby/core/dir/shared/pos.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/ruby/core/dir/shared/pos.rb b/spec/ruby/core/dir/shared/pos.rb
index 2165932d99..11712cc75d 100644
--- a/spec/ruby/core/dir/shared/pos.rb
+++ b/spec/ruby/core/dir/shared/pos.rb
@@ -8,9 +8,9 @@ describe :dir_pos, shared: true do
end
it "returns an Integer representing the current position in the directory" do
- @dir.send(@method).should be_kind_of(Integer)
- @dir.send(@method).should be_kind_of(Integer)
- @dir.send(@method).should be_kind_of(Integer)
+ @dir.send(@method).should.is_a?(Integer)
+ @dir.send(@method).should.is_a?(Integer)
+ @dir.send(@method).should.is_a?(Integer)
end
it "returns a different Integer if moved from previous position" do
@@ -18,8 +18,8 @@ describe :dir_pos, shared: true do
@dir.read
b = @dir.send(@method)
- a.should be_kind_of(Integer)
- b.should be_kind_of(Integer)
+ a.should.is_a?(Integer)
+ b.should.is_a?(Integer)
a.should_not == b
end