Skip to content

Commit f6a3570

Browse files
committed
Rspec tests fail due to tilt dependency
This is related to [#243](https://github.com/reactjs/react-rails/pull/243/files) 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. I've noticed that adding tilt as a dependency in the gemspec solves this issue and all other tests run without a problem.
1 parent ff564e8 commit f6a3570

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

react-rails.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Gem::Specification.new do |s|
3030
s.add_dependency 'rails', '>= 3.1'
3131
# If you change this, make sure to update VERSIONS.md:
3232
s.add_dependency 'react-source', '~> 0.13'
33+
s.add_dependency 'tilt'
3334

3435
s.files = Dir[
3536
'lib/**/*',

0 commit comments

Comments
 (0)