0

I'm writing some tests for this gem's generator methods and getting this error. I'm wondering what I'm missing in the config to test this properly. It seems to be related to loading the rails config in this method:

def use_coffeescript?
  ::Rails.configuration.app_generators.rails[:javascript_engine] == :coffee
end

For sake of brevity, here is the diff. Thanks in advance for any advice/links/etc!

Todd Baur
  • 995
  • 8
  • 22

1 Answers1

2

You might need to add this to your spec_helper:

require 'action_controller'
Simpleton
  • 6,285
  • 11
  • 53
  • 87