From 974b9260fe8cea05feaf85a836c2c91be0e1bed4 Mon Sep 17 00:00:00 2001 From: Ryan Scherle Date: Fri, 3 May 2019 01:04:44 +0000 Subject: [PATCH] rubocop --- Rakefile | 2 +- spec/features/stash_datacite/new_dataset_spec.rb | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Rakefile b/Rakefile index 1e3f6bd4..c129c850 100644 --- a/Rakefile +++ b/Rakefile @@ -1,7 +1,7 @@ # ------------------------------------------------------------ # Rails defaults -require File.expand_path('../config/application', __FILE__) +require File.expand_path('config/application', __dir__) Rails.application.load_tasks # ------------------------------------------------------------ diff --git a/spec/features/stash_datacite/new_dataset_spec.rb b/spec/features/stash_datacite/new_dataset_spec.rb index f37f2ade..247b2885 100644 --- a/spec/features/stash_datacite/new_dataset_spec.rb +++ b/spec/features/stash_datacite/new_dataset_spec.rb @@ -94,7 +94,6 @@ fill_in 'related_identifier[related_identifier]', with: Faker::Pid.doi end - it 'charges user by default', js: true do navigate_to_review expect(page).to have_text('you will receive an invoice') @@ -105,13 +104,13 @@ waiver_university = Faker::Educator.university stub_ror_id_lookup(university: waiver_university, country: waiver_country) allow_any_instance_of(StashDatacite::Affiliation).to receive(:fee_waiver_countries).and_return([waiver_country]) - + # ############################## # Author w/ affiliation in specific university fill_in_author fill_in 'author[affiliation][long_name]', with: waiver_university first('.ui-menu-item-wrapper', wait: 5).click - + navigate_to_review expect(page).to have_text('Payment is not required') end @@ -121,13 +120,13 @@ non_waiver_university = Faker::Educator.university stub_ror_id_lookup(university: non_waiver_university, country: non_waiver_country) allow_any_instance_of(StashDatacite::Affiliation).to receive(:fee_waiver_countries).and_return(['Waiverlandia']) - + # ############################## # Author w/ affiliation in specific university fill_in_author fill_in 'author[affiliation][long_name]', with: non_waiver_university first('.ui-menu-item-wrapper', wait: 5).click - + navigate_to_review expect(page).to have_text('you will receive an invoice') end