From 13a8201834dd8245480b510fb0b7715676a1a6dc Mon Sep 17 00:00:00 2001 From: JG Date: Mon, 23 May 2022 12:01:59 +0100 Subject: [PATCH] resolved rubocop cucumber comaplints --- .rubocop.yml | 1 + features/step_definitions/data_coordinator_steps.rb | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index cf0c1e933..f1abd756b 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -17,6 +17,7 @@ AllCops: - 'config/application.rb' - 'config/puma.rb' - 'vendor/**/*' + - 'lib/tasks/cucumber.rake' Style/Documentation: Enabled: false diff --git a/features/step_definitions/data_coordinator_steps.rb b/features/step_definitions/data_coordinator_steps.rb index 4bc10c360..c41796466 100644 --- a/features/step_definitions/data_coordinator_steps.rb +++ b/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