Allow builder DSL to accept implicit arrays and hashes #6
GitHub Actions / Rspec Tests - 2.7
succeeded
Feb 15, 2024 in 0s
14 passed, 0 failed and 0 skipped
✅ test_results/rspec.xml
14 tests were completed in 7ms with 14 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
rspec | 14✅ | 7ms |
✅ rspec
spec.unit.keyword_builder_spec
✅ KeywordBuilder with a simple struct builds a record with the builder
✅ KeywordBuilder with a simple struct builds a record combining arguments
✅ KeywordBuilder with a simple struct constructs an array when builder is given more than one argument
✅ KeywordBuilder with a simple struct constructs an array when builder is given arguments and a block
✅ KeywordBuilder with a simple struct constructs an hash when builder is given keyword arguments
✅ KeywordBuilder with a simple struct rejects arguments colliding with builder
✅ KeywordBuilder with a simple struct rejects repeated arguments
✅ KeywordBuilder with a simple struct requires an argument
✅ KeywordBuilder with a simple struct rejects mixed keyword and positional arguments
✅ KeywordBuilder with a simple struct rejects mixed keyword and block arguments
✅ KeywordBuilder with a simple struct rejects unknown arguments
✅ KeywordBuilder with a simple struct marks non-wildcard builders
✅ KeywordBuilder with a simple struct with wildcard arguments marks wildcard builders
✅ KeywordBuilder with a simple struct with wildcard arguments passes wildcard arguments
Loading