Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
900dffe
Import be_an_instance_of_spec of mspec
herwinw Jan 17, 2025
b1ee349
Cobble a passing mspec test together
herwinw Jan 17, 2025
dcc478b
Split existing BeInstanceOfExpectation into Matcher and Excpectation
herwinw Jan 17, 2025
63a4899
Add stub files to fix the includes of the upstream mspec specs
herwinw Jan 18, 2025
3e1a89b
Import BeAnInstanceOfMatcher from mspec
herwinw Jan 18, 2025
e795ff9
Remove BeInstanceOfExpectation
herwinw Jan 18, 2025
0189a38
Import BeKindOfMatcher from mspec
herwinw Jan 18, 2025
73b4f7b
Import BeNilMatcher from mspec
herwinw Jan 18, 2025
90bcf26
Sync spec_helper in mspec tests with upstream file
herwinw Jan 18, 2025
6cce6da
Import BeAncestorOfMatcher from mspec
herwinw Jan 18, 2025
f580723
Import BlockingMatcher from mspec
herwinw Jan 18, 2025
065322e
Import EqlMatcher from mspec
herwinw Jan 18, 2025
8605374
Import BeEmptyMatcher from mspec
herwinw Jan 18, 2025
84ab125
Remove mspec tests from our repo
herwinw Jan 18, 2025
59736df
Import BeTrueMatcher from mspec
herwinw Jan 18, 2025
bb4ce43
Import BeFalseMatcher from mspec
herwinw Jan 18, 2025
a4fc341
Import EqualMatcher from mspec
herwinw Jan 18, 2025
4ba1dd3
Import EqualElementMatcher from mspec
herwinw Jan 18, 2025
0fbb86d
Import BeTrueOrFalseMatcher from mspec
herwinw Jan 18, 2025
3d6c3ec
Import BeCloseMatcher from mspec
herwinw Jan 18, 2025
973580b
Import BeComputedByMatcher from mspec
herwinw Jan 18, 2025
55ea37c
Import BeNanExpectation from mspec
herwinw Jan 18, 2025
4a29807
Import InfinityMatcher from mspec
herwinw Jan 18, 2025
29a595b
Draft: A little bit better
herwinw Jan 18, 2025
f639bde
Ignore matchers in formatting
herwinw Apr 21, 2025
7ecbf7a
Convert OutputExpectation to OutputMatcher
herwinw May 19, 2025
fd5fffa
Convert YAMLExpectation to YAMLMatcher
herwinw May 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .streerc
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@
--ignore-files=lib/uri*
--ignore-files=spec/*
--ignore-files=test/support/version.rb*
--ignore-files=test/support/spec_helpers/matchers/*

--plugins=plugin/trailing_comma,plugin/single_quotes,plugin/disable_auto_ternary
2 changes: 1 addition & 1 deletion spec/core/kernel/Complex_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
n2 = mock_numeric("n2")
n3 = mock_numeric("n3")
n4 = mock_numeric("n4")
NATFIXME 'when passed Numerics n1 and n2 and at least one responds to #real? with false', exception: ArgumentError, message: 'comparison of MockNumeric with 0 failed' do
NATFIXME 'when passed Numerics n1 and n2 and at least one responds to #real? with false', exception: SpecFailedException, message: 'comparison of MockNumeric with 0 failed' do
n1.should_receive(:real?).any_number_of_times.and_return(r1)
n2.should_receive(:real?).any_number_of_times.and_return(r2)
n2.should_receive(:*).with(Complex(0, 1)).and_return(n3)
Expand Down
2 changes: 1 addition & 1 deletion test/support/mspec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class MSpec
module MSpec
def self.features
@features || {}
end
Expand Down
Loading
Loading