Repository navigation
Bring the notations back into Assay as one library - #3
Merged
Merged
Conversation
Fluidity, RSpecial, Assay MiniTest and Assay TestUnit were spun off as separate gems in 0.4. They return as assay/fluidity, assay/rspec, assay/minitest and assay/testunit, each loaded on its own, with their demos. The Minitest and Test::Unit adapters are rewritten for current versions of those frameworks. Fixes found on the way: with the fluent assert loaded no assay could fail; negation was ignored in the fluent fallback; will_not was never defined; assert_in_epsilon raised NameError in the Test::Unit notation; the ordering assays had the wrong message; like? used the =~ that Ruby 3.2 removed from Object. Replaces the old packaging with a gemspec, Rakefile and GitHub Actions. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Assay becomes a single library of assertion notations over one set of assertion classes. The four gems spun off in 0.4 come back, each loaded on its own:
assay/fluidityx.should.equal y,x.assert == yfluidityassay/rspecshould eq,expect(x).to eqrspecialassay/minitestassert_equal,must_equalassay-minitestassay/testunitassert_equalassay-testunitFluidityis nowAssay::FluidityandRSpecialisAssay::RSpec. Their demos came along, underdemo/<notation>/. The version is 0.5.0 inlib/assay/version.rb; HISTORY is under Unreleased.Also in here
MiniTest::Unit#pukeand aTestCase#runthat no longer exist.expecttakes a block, soexpect{ ... }.to raise_error(ArgumentError)works.assay.gemspec, Rakefile and GitHub Actions (Ruby 2.7 to 4.0) replace.index,Assembly,MANIFESTand Travis.work/,try/andvar/are removed.Bugs fixed
fluidity/assertloaded,assert(false)returned a grammar object and passed. Assay itself called thatassert, so no assay could fail either. Assay now calls BRASS'sKernel.assertdirectly.will_notandwontwere never defined; loading thewillnotation raised NameError.assert_in_epsilonandassert_not_in_epsilonraised NameError in the Test::Unit notation.LessAssay,LessEqualAssay,MoreAssayandMoreEqualAssayreported5 <=> 3 == 0in place of5 <= 3.CloseAssaywas wrong for a negative criterion.Kernel#like?called=~, which Ruby 3.2 removed from Object. It now matches Facets'like?.Testing
rakeruns three things, all passing on Ruby 3.4.9:Not in here
beandbang. They are built on BRASS, not on Assay's classes, so adding them means porting them.🤖 Generated with Claude Code