Open zedtux opened 3 years ago
I wrote a spec for a NoBrainer generator.
It passes on my local machine, but it fails on Travis with the following error:
NameError: uninitialized constant Rails::Generators::Base::Rails /home/travis/.rvm/gems/ruby-2.6.0/gems/railties-6.0.3.4/lib/rails/generators/base.rb:302:in `namespace' /home/travis/.rvm/gems/ruby-2.6.0/gems/railties-6.0.3.4/lib/rails/generators/base.rb:306:in `namespaced?' /home/travis/.rvm/gems/ruby-2.6.0/gems/railties-6.0.3.4/lib/rails/generators/named_base.rb:59:in `class_path' /home/travis/.rvm/gems/ruby-2.6.0/gems/railties-6.0.3.4/lib/rails/generators/named_base.rb:71:in `class_name' /home/travis/.rvm/gems/ruby-2.6.0/gems/railties-6.0.3.4/lib/rails/generators/named_base.rb:219:in `block in check_class_collision' /home/travis/.rvm/gems/ruby-2.6.0/gems/thor-1.0.1/lib/thor/command.rb:27:in `run' /home/travis/.rvm/gems/ruby-2.6.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command' /home/travis/.rvm/gems/ruby-2.6.0/gems/thor-1.0.1/lib/thor/invocation.rb:134:in `block in invoke_all' /home/travis/.rvm/gems/ruby-2.6.0/gems/thor-1.0.1/lib/thor/invocation.rb:134:in `each' /home/travis/.rvm/gems/ruby-2.6.0/gems/thor-1.0.1/lib/thor/invocation.rb:134:in `map' /home/travis/.rvm/gems/ruby-2.6.0/gems/thor-1.0.1/lib/thor/invocation.rb:134:in `invoke_all' /home/travis/.rvm/gems/ruby-2.6.0/gems/thor-1.0.1/lib/thor/group.rb:232:in `dispatch' /home/travis/.rvm/gems/ruby-2.6.0/gems/thor-1.0.1/lib/thor/base.rb:485:in `start' /home/travis/.rvm/gems/ruby-2.6.0/gems/railties-6.0.3.4/lib/rails/generators/testing/behaviour.rb:73:in `block in run_generator' /home/travis/.rvm/gems/ruby-2.6.0/gems/activesupport-6.0.3.4/lib/active_support/testing/stream.rb:32:in `capture' /home/travis/.rvm/gems/ruby-2.6.0/gems/railties-6.0.3.4/lib/rails/generators/testing/behaviour.rb:68:in `run_generator' /home/travis/.rvm/gems/ruby-2.6.0/gems/generator_spec-0.9.4/lib/generator_spec/test_case.rb:37:in `method_missing' ./spec/lib/generators/migration_generator_spec.rb:22:in `block (2 levels) in <top (required)>'
I don't really understand why and would really appreciate some input from you in order to get ride of it, please.
I wrote a spec for a NoBrainer generator.
It passes on my local machine, but it fails on Travis with the following error:
I don't really understand why and would really appreciate some input from you in order to get ride of it, please.