Skip to content

#1403 : string description for feature specs #1426

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/generators/rspec/feature/feature_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ class FeatureGenerator < Base

def generate_feature_spec
return unless options[:feature_specs]
file_name = table_name.parameterize.underscore

template 'feature_spec.rb', File.join('spec/features', class_path, "#{table_name}_spec.rb") # file_name?
template 'feature_spec.rb', File.join('spec/features', class_path, "#{file_name}_spec.rb") # file_name?
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/rspec/feature/templates/feature_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'rails_helper'

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