tab/spec/support/api_helper.rb
2015-09-12 13:03:04 +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