tab/spec/support/api_helper.rb

12 lines
197 B
Ruby
Raw Normal View History

2015-09-12 13:03:04 +02:00
module ApiHelper
include Rack::Test::Methods
def app
Rails.application
end
end
RSpec.configure do |config|
config.include ApiHelper, type: :api #apply to all spec for apis folder
end