From 9a26d628ecbff8e354365cb53dfafe5ed1a0e59e Mon Sep 17 00:00:00 2001 From: Postmodern Date: Tue, 18 Jul 2023 17:59:49 -0700 Subject: [PATCH] Use stricter logic in the spec. --- spec/cli/ruby_shell_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/cli/ruby_shell_spec.rb b/spec/cli/ruby_shell_spec.rb index 22fb134..8813948 100644 --- a/spec/cli/ruby_shell_spec.rb +++ b/spec/cli/ruby_shell_spec.rb @@ -48,8 +48,7 @@ def self.const_missing(name) let(:context) { TestRubyShell::Namespace } it "must wrap the Module in an Object" do - expect(subject.context).to be_kind_of(Object) - expect(subject.context.class).to be_a(Class) + expect(subject.context).to be_a(Object) expect(subject.context).to be_kind_of(context) end