Last active
June 27, 2018 08:52
-
-
Save andriy-baran/504c3cb02ec507196d261555541a7109 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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