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

rspec doesn't run after cloning the repository #378

Open
matheussilvasantos opened this issue May 3, 2021 · 1 comment
Open

rspec doesn't run after cloning the repository #378

matheussilvasantos opened this issue May 3, 2021 · 1 comment

Comments

@matheussilvasantos
Copy link

Hi, I've just cloned the repository to try to run the tests with bundle exec rspec, but I'm getting errors:

An error occurred while loading ./spec/server_spec.rb. - Did you mean?
                    rspec ./spec/server/tcp_spec.rb
                    rspec ./spec/runner_spec.rb
                    rspec ./spec/headers_spec.rb

Failure/Error: require "thin_parser"

LoadError:
  cannot load such file -- thin_parser
# ./lib/thin.rb:39:in `require'
# ./lib/thin.rb:39:in `<top (required)>'
# ./spec/spec_helper.rb:2:in `require'
# ./spec/spec_helper.rb:2:in `<top (required)>'
# ./spec/server_spec.rb:1:in `require'
# ./spec/server_spec.rb:1:in `<top (required)>'
No examples found.


Finished in 0.00006 seconds (files took 0.48454 seconds to load)
0 examples, 0 failures, 30 errors occurred outside of examples

How can we run the tests? Is there something missing?

@Vasfed
Copy link
Contributor

Vasfed commented Jan 30, 2023

thin_parser is a native extension, that should be compiled via rake compile before rspec.
Or use rake spec to run tests (it compiles extension before running)

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

No branches or pull requests

2 participants