tab/spec/support/api_helper.rb
2015-09-09 21:52:16 +02:00

11 lines
197 B
Ruby

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