File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
lib/generators/rspec/controller/templates
spec/generators/rspec/controller Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 11require 'rails_helper'
22
33RSpec . describe "<%= class_name.pluralize %>" , <%= type_metatag ( :request ) %> do
4- <% namespaced_path = regular_class_path.join('/') %>
4+ <% namespaced_path = regular_class_path.join('/') -%>
5+ <% if actions.empty? -%>
6+ describe "GET /index" do
7+ pending "add some examples (or delete) #{ __FILE__ } "
8+ end
9+ <% end -%>
510<% for action in actions -%>
611 describe "GET /<%= action %>" do
712 it "returns http success" do
Original file line number Diff line number Diff line change 1717 it { is_expected . to exist }
1818 it { is_expected . to contain ( /require 'rails_helper'/ ) }
1919 it { is_expected . to contain ( /^RSpec.describe "Posts", #{ type_metatag ( :request ) } / ) }
20+ it { is_expected . to contain ( 'pending' ) }
2021 end
2122 end
2223
You can’t perform that action at this time.
0 commit comments