Sha256: 0614d49405a81ffc9e22e64e03c6428de439829a8b88dabe552811e812d8d3b5

Contents?: true

Size: 515 Bytes

Versions: 1

Compression:

Stored size: 515 Bytes

Contents

<% if File.exist?(File.join %w[spec rails_helper.rb]) -%>
require 'rails_helper'
<% else -%>
require 'spec_helper'
<% end -%>

describe "<%= class_name.pluralize %>", type: :request do
  before :each do
    allow_any_instance_of(<%= class_name.pluralize %>Controller).to receive(:current_user).and_return(current_user)
  end

  describe "GET /<%= table_name %>" do
    it "works! (now write some real specs)" do
      get <%= index_helper %>_path
      # expect(response).to have_http_status(200)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rspec_rails_scaffold_templates-1.0.7 lib/templates/rspec/integration/request_spec.rb