Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failing tests #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

kiskoza
Copy link

@kiskoza kiskoza commented May 4, 2023

Running rake gives a few errors.

Before
$> rake
bacon -q -Ilib -I. test/*_test.rb
......FF
Finished in 0.112187068 seconds.
Bacon::Error: "#<Mustermann::Sinatra:\"/\">".==("/") failed
        tux/test/commands_test.rb:39:in `block (3 levels) in <top (required)>': #routes - retrieves string path
        tux/test/commands_test.rb:38:in `block (2 levels) in <top (required)>'
        ruby/2.3.8/lib/ruby/gems/2.3.0/gems/bacon-bits-0.1.0/lib/bacon/bits.rb:20:in `describe'
        tux/test/commands_test.rb:37:in `block in <top (required)>'
        tux/test/commands_test.rb:3:in `<top (required)>'

Bacon::Error: "#<Mustermann::Sinatra:\"/:id/:format\">".==("/:id/:format") failed
        tux/test/commands_test.rb:43:in `block (3 levels) in <top (required)>': #routes - retrieves path with params
        tux/test/commands_test.rb:42:in `block (2 levels) in <top (required)>'
        ruby/2.3.8/lib/ruby/gems/2.3.0/gems/bacon-bits-0.1.0/lib/bacon/bits.rb:20:in `describe'
        tux/test/commands_test.rb:37:in `block in <top (required)>'
        tux/test/commands_test.rb:3:in `<top (required)>'

8 tests, 9 assertions, 2 failures, 0 errors
rake aborted!
Command failed with status (1): [bacon -q -Ilib -I. test/*_test.rb...]
tux/Rakefile:32:in `block in <top (required)>'
Tasks: TOP => default => test
(See full trace by running task with --trace)
After
$> rake
bacon -q -Ilib -I. test/*_test.rb
........
Finished in 0.111346606 seconds.

8 tests, 9 assertions, 0 failures, 0 errors

I tested it with ruby 2.3.8, 2.7.8 and 3.0.5 , all has the same outputs

@kiskoza kiskoza mentioned this pull request May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant