Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 6f46e39

Browse files
committed
Simplify the expectation
1 parent 685117c commit 6f46e39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/rspec/core/example_group_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def metadata_hash(*args)
180180

181181
it 'does not have problems with example groups named "Core"', :unless => RUBY_VERSION == '1.9.2' do
182182
RSpec.describe("Core")
183-
expect(defined?(::RSpec::ExampleGroups::Core)).to eq('constant')
183+
expect(defined?(::RSpec::ExampleGroups::Core)).to be
184184

185185
# The original bug was triggered when a group was defined AFTER one named `Core`,
186186
# due to it not using the fully qualified `::RSpec::Core::ExampleGroup` constant.
@@ -190,7 +190,7 @@ def metadata_hash(*args)
190190

191191
it 'does not have problems with example groups named "RSpec"', :unless => RUBY_VERSION == '1.9.2' do
192192
RSpec.describe("RSpec")
193-
expect(defined?(::RSpec::ExampleGroups::RSpec)).to eq('constant')
193+
expect(defined?(::RSpec::ExampleGroups::RSpec)).to be
194194

195195
# The original bug was triggered when a group was defined AFTER one named `RSpec`,
196196
# due to it not using the fully qualified `::RSpec::Core::ExampleGroup` constant.

0 commit comments

Comments
 (0)