Skip to content
This repository has been archived by the owner on Nov 20, 2019. It is now read-only.

Commit

Permalink
rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
ryscher committed May 3, 2019
1 parent a956b19 commit 974b926
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion 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

# ------------------------------------------------------------
Expand Down
9 changes: 4 additions & 5 deletions spec/features/stash_datacite/new_dataset_spec.rb
Expand Up @@ -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')
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 974b926

Please sign in to comment.