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

Commit 60229f1

Browse files
committed
fixup! math class
1 parent 592751c commit 60229f1

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

spec/rspec/core/memoized_helpers_spec.rb

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -340,12 +340,15 @@ def not_ok?; false; end
340340
end
341341

342342
it 'supports a new expect-based syntax' do
343+
math_class = Class.new do
344+
def easy?
345+
false
346+
end
347+
end
343348
group =
344-
with_isolated_stderr do
345-
RSpec.describe([1, 2, 3]) do
346-
it { is_expected.to be_an Array }
347-
it { is_expected.not_to include 4 }
348-
end
349+
RSpec.describe(math_class) do
350+
it { is_expected.to be_a math_class }
351+
it { is_expected.to_not be_easy }
349352
end
350353

351354
expect(group.run).to be true

0 commit comments

Comments
 (0)