-
Notifications
You must be signed in to change notification settings - Fork 754
Rspec tests fail due to tilt
dependency
#243
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
Conversation
I am using `react-rails` as dependency in a gem I created and running `rspec` in that gem throws the following error: ``` $ rspec /Users/gbanis/.rvm/gems/ruby-2.0.0-p598/gems/react-rails-0.13.0.0/lib/react/jsx/template.rb:1:in `require': cannot load such file -- tilt (LoadError) from /Users/gbanis/.rvm/gems/ruby-2.0.0-p598/gems/react-rails-0.13.0.0/lib/react/jsx/template.rb:1:in `<top (required)>' from /Users/gbanis/.rvm/gems/ruby-2.0.0-p598/gems/react-rails-0.13.0.0/lib/react/jsx.rb:3:in `require' from /Users/gbanis/.rvm/gems/ruby-2.0.0-p598/gems/react-rails-0.13.0.0/lib/react/jsx.rb:3:in `<top (required)>' from /Users/gbanis/.rvm/gems/ruby-2.0.0-p598/gems/react-rails-0.13.0.0/lib/react-rails.rb:1:in `require' from /Users/gbanis/.rvm/gems/ruby-2.0.0-p598/gems/react-rails-0.13.0.0/lib/react-rails.rb:1:in `<top (required)>' ... ``` This happens because `react-rails` requires `tilt` [here](https://github.com/reactjs/react-rails/blob/0.13/lib/react/jsx/template.rb). I've noticed that adding `tilt` as a dependency in the `gemspec` solves this issue and all other tests run without a problem.
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at [email protected]. Thanks! |
@@ -21,6 +21,7 @@ Gem::Specification.new do |s| | |||
s.add_dependency 'execjs' | |||
s.add_dependency 'rails', '>= 3.1' | |||
s.add_dependency 'react-source', '0.13.0' | |||
spec.add_dependency 'tilt' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s
, not spec
Can you actually do a PR against master as well? That makes sure it goes into the major releases. |
@zpao Sure |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
Rspec tests fail due to `tilt` dependency
cool |
I can ship 0.13.2.0 with this and React 0.13.2. We could also do 0.13.1.1 if you want with just this. |
I'll make another PR to add this in 1.0. |
For more info look at PRs [248](reactjs#248) and [243](reactjs#243).
For more info look at PRs [248](reactjs#248) and [243](reactjs#243).
No good reason, only poor maintaining on my part 😬 Yeah, I just pushed the 1.0-stable branch for that purpose! |
I am using
react-rails
as dependency in a gem I created and runningrspec
in that gem throws the following error:This happens because
react-rails
requirestilt
here.I've noticed that adding
tilt
as a dependency in thegemspec
solves this issue and all other tests run without a problem.