Wednesday, May 14, 2014

Use Rack::Config to set 'api.tilt.root' in config.ru

Got the following when running rspec with grape.
RuntimeError: Use Rack::Config to set 'api.tilt.root' in config.ru
Solution: let(:app) { Class.new(MyApp::API) } before do app.before { env["api.tilt.root"] = Rails.root.join("app", "api", "views") } end