Browse Source

resolved rubocop cucumber comaplints

cucumber-rails
JG 3 years ago
parent
commit
13a8201834
  1. 1
      .rubocop.yml
  2. 6
      features/step_definitions/data_coordinator_steps.rb

1
.rubocop.yml

@ -17,6 +17,7 @@ AllCops:
- 'config/application.rb'
- 'config/puma.rb'
- 'vendor/**/*'
- 'lib/tasks/cucumber.rake'
Style/Documentation:
Enabled: false

6
features/step_definitions/data_coordinator_steps.rb

@ -1,12 +1,12 @@
Given('there are multiple users in the same organization') do
Given("there are multiple users in the same organization") do
@users = create_list :user, 5, organisation: @user.organisation
end
Given('I visit the users page') do
Given("I visit the users page") do
click_link("Users")
end
Then('I see information about those users') do
Then("I see information about those users") do
@users.each do |user|
expect(page.body).to have_content user.name
expect(page.body).to have_content user.email

Loading…
Cancel
Save