lib/generators/graphiti/templates/index_request_spec.rb.erb in graphiti-1.0.alpha.18 vs lib/generators/graphiti/templates/index_request_spec.rb.erb in graphiti-1.0.alpha.19
- old
+ new
@@ -2,10 +2,10 @@
RSpec.describe "<%= type %>#index", type: :request do
let(:params) { {} }
subject(:make_request) do
- jsonapi_get "/<%= api_namespace %>/v1/<%= type %>", params: params
+ jsonapi_get "<%= api_namespace %>/<%= type %>", params: params
end
describe 'basic fetch' do
let!(:<%= var %>1) { create(:<%= var %>) }
let!(:<%= var %>2) { create(:<%= var %>) }