Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
RSpec.describe '', type: :request do
include_context 'api session'
<% @path_params.each do |param| %>
<%= "let(#{param}) { #{rand(99..500)} }" %>
<% end %>
let(:path) { "<%= @path %>" }
let(:valid_params) { {} }
let(:valid_response) { {} }
describe '<%= @http_verb.upcase %> <%= controller %>#<%= file_name %>' do
it_behaves_like 'protected endpoint', :<%= @http_verb.downcase %>
context '' do
xit 'renders correct response' do
do_<%= @http_verb.downcase %>
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment