File tree 2 files changed +7
-1
lines changed
lib/generators/rspec/controller/templates
spec/generators/rspec/controller
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
require 'rails_helper'
2
2
3
3
RSpec . 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 -%>
5
10
<% for action in actions -%>
6
11
describe "GET /<%= action %>" do
7
12
it "returns http success" do
Original file line number Diff line number Diff line change 17
17
it { is_expected . to exist }
18
18
it { is_expected . to contain ( /require 'rails_helper'/ ) }
19
19
it { is_expected . to contain ( /^RSpec.describe "Posts", #{ type_metatag ( :request ) } / ) }
20
+ it { is_expected . to contain ( 'pending' ) }
20
21
end
21
22
end
22
23
You can’t perform that action at this time.
0 commit comments