Skip to content

Commit 74e417a

Browse files
Liss McCabesebjacobs
authored andcommitted
Singularize classes for feature names
Fixes issue rspec#1403
1 parent a7d19c1 commit 74e417a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/generators/rspec/feature/feature_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class FeatureGenerator < Base
99
def generate_feature_spec
1010
return unless options[:feature_specs]
1111

12-
template 'feature_spec.rb', File.join('spec/features', class_path, "#{table_name}_spec.rb") # file_name?
12+
template 'feature_spec.rb', File.join('spec/features', class_path, "#{class_name.downcase}_spec.rb") # file_name?
1313
end
1414
end
1515
end
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require 'rails_helper'
22

3-
RSpec.feature "<%= class_name.pluralize %>", <%= type_metatag(:feature) %> do
3+
RSpec.feature "<%= class_name %>", <%= type_metatag(:feature) %> do
44
pending "add some scenarios (or delete) #{__FILE__}"
55
end

0 commit comments

Comments
 (0)