Sha256: 83cb19979bd8f6f0b080944843039055623086898a64702db9cdf0e5bf22d7a1
Contents?: true
Size: 632 Bytes
Versions: 20
Compression:
Stored size: 632 Bytes
Contents
RSpec.describe "<%= model_name_pluralize_underscored %>", type: :request do describe "API" do context "logged", logged: true do before(:each) do role = Role.non_member role.add_permission! :view_<%= model_name_pluralize_underscored %> end it "list" do FactoryBot.create_list :<%= model_name_underscored %>, 2 get <%= model_name_pluralize_underscored %>_path(format: "json") expect(response).to have_http_status :success expect(response.body).to include "limit", "offset" expect(response.body).to match /total_count.{,2}:2/ end end end end
Version data entries
20 entries across 20 versions & 1 rubygems