Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix to add missing dependency to run generator spec individually
Without this `require` statement, the following error has thrown: $ bundle exec rspec spec/react_on_rails/generators/generator_messages_spec.rb An error occurred while loading ./spec/react_on_rails/generators/generator_messages_spec.rb. Failure/Error: describe GeneratorMessages do it "has an empty messages array" do expect(GeneratorMessages.messages).to be_empty end it "has a method that can add errors" do GeneratorMessages.add_error "Test error" expect(GeneratorMessages.messages) .to match_array([GeneratorMessages.format_error("Test error")]) end NameError: uninitialized constant GeneratorMessages # ./spec/react_on_rails/generators/generator_messages_spec.rb:5:in `<top (required)>' No examples found. Finished in 0.00026 seconds (files took 0.12917 seconds to load) 0 examples, 0 failures, 1 error occurred outside of examples
- Loading branch information