summaryrefslogtreecommitdiff
path: root/spec/ruby/library/openstruct/shared/inspect.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/openstruct/shared/inspect.rb')
-rw-r--r--spec/ruby/library/openstruct/shared/inspect.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/library/openstruct/shared/inspect.rb b/spec/ruby/library/openstruct/shared/inspect.rb
index ffcd690e1f..d5fffa0e2e 100644
--- a/spec/ruby/library/openstruct/shared/inspect.rb
+++ b/spec/ruby/library/openstruct/shared/inspect.rb
@@ -4,7 +4,7 @@ describe :ostruct_inspect, shared: true do
os.send(@method).should == "#<OpenStruct name=\"John Smith\">"
os = OpenStruct.new(age: 20, name: "John Smith")
- os.send(@method).should be_kind_of(String)
+ os.send(@method).should.is_a?(String)
end
it "correctly handles self-referential OpenStructs" do