Hi, Guys!
I work with a large application built with Padrino.
With this application we have lots of other mini-applications: app, api, admin, etc.
All of them are mounted on the apps.rb file in our config folder.
Our Api app is mounted like this: Padrino.mount('Api').to('/').host(/^api\.(ourdomain\.com|localhost)/)
We used to use Minitest in this application but we are trying to migrate to RSpec.
I created the very first rspec test below:
require 'spec_helper'
describe 'Stores', type: :request do
describe 'GET :index' do
it 'returns 200 HTTP status' do
get '/v1/store/info.json'
end
end
end
But I am getting the following error:
1) Stores GET :index returns 200 HTTP status
Failure/Error: end
NoMethodError:
undefined method `get' for #<RSpec::ExampleGroups::Stores::GETIndex:0x00007fd7e6fa8cf8>
Did you mean? gets
gem
Any idea about the proper way to configure RSpec in Minitest?
Do I still need to require rake/test?
Why exactly the get method was not found?
Thanks in advance,
Paulo