template/spec/spec_helper.rb.tt in grape-gen-0.0.5 vs template/spec/spec_helper.rb.tt in grape-gen-0.0.6

- old
+ new

@@ -5,10 +5,15 @@ require 'rspec' require 'rspec_api_documentation' <% if @mandrill %> require 'mandrill_mailer/offline' <% end %> + RACK_ENV = 'test' unless defined?(RACK_ENV) + +%w{patches}.each do |path| + Dir[File.expand_path('patches/**/*.rb', File.dirname(__FILE__))].each {|f| require f} +end class TestApiClient < RspecApiDocumentation::RackTestClient def response_body body = JSON.load(last_response.body) case body \ No newline at end of file