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

Specs not working #7

Open
ioquatix opened this issue Jun 21, 2017 · 1 comment
Open

Specs not working #7

ioquatix opened this issue Jun 21, 2017 · 1 comment

Comments

@ioquatix
Copy link
Member

I thought I followed all the instructions.

But specs still failing

% rspec        
/home/samuel/Documents/Programming/socketry/guard-falcon/lib/guard/falcon/controller.rb:56: warning: assigned but unused variable - options
/home/samuel/.rvm/gems/ruby-2.4.0/gems/async-io-0.5.0/lib/async/io/socket.rb:59: warning: shadowing outer local variable - task
/home/samuel/.rvm/gems/ruby-2.4.0/gems/async-http-0.2.0/lib/async/http/protocol/http1x.rb:51: warning: assigned but unused variable - method
/home/samuel/.rvm/gems/ruby-2.4.0/gems/async-http-0.2.0/lib/async/http/protocol/http1x.rb:51: warning: assigned but unused variable - path

Guard::Falcon::Controller
  should start server (FAILED - 1)

Failures:

  1) Guard::Falcon::Controller should start server
     Failure/Error: logger.info("Starting Falcon HTTP server on #{@options[:bind]}.")
     
     NoMethodError:
       undefined method `info' for Guard::UI:Module
     # /home/samuel/.rvm/gems/ruby-2.4.0/gems/guard-compat-1.2.1/lib/guard/compat/plugin.rb:73:in `info'
     # ./lib/guard/falcon/controller.rb:62:in `run_server'
     # ./lib/guard/falcon/controller.rb:76:in `start'
     # ./spec/guard/falcon/controller_spec.rb:30:in `block (2 levels) in <top (required)>'

Finished in 0.00069 seconds (files took 0.08173 seconds to load)
1 example, 1 failure

Failed examples:

rspec ./spec/guard/falcon/controller_spec.rb:29 # Guard::Falcon::Controller should start server
@ioquatix
Copy link
Member Author

ioquatix commented Jun 21, 2017

So, I added require 'guard' to spec_helper.rb and it worked. Because, guard/compat/plugin/helper define Guard::UI but empty, and this breaks Guard::Compat::UI. But I don't understand, is this desired behaviour?

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

1 participant