Skip to content

Commit

Permalink
✅ updates expectation for specs
Browse files Browse the repository at this point in the history
  • Loading branch information
ShanaLMoore committed Sep 19, 2024
1 parent fe987f8 commit 6fda7fd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
13 changes: 5 additions & 8 deletions spec/features/create_etd_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,20 +62,17 @@
fill_in('Keyword', with: 'testing')
select('In Copyright', from: 'Rights')
fill_in('Date', with: '01/27/2021')
fill_in('Degree Name', with: 'Bachelor of Science')
fill_in('Degree Level', with: 'Undergraduate')
fill_in('Degree Discipline', with: 'Computer Science')
fill_in('Degree Grantor', with: 'University of Technology')
fill_in('Level', with: 'High')
fill_in('Discipline', with: 'Com Sci')
fill_in('Grantor', with: 'PALNI/PALCI')
fill_in('Degree name', with: 'Bachelor of Science')
fill_in('Degree level', with: 'Undergraduate')
fill_in('Degree discipline', with: 'Computer Science')
fill_in('Degree grantor', with: 'University of Technology')
select('Article', from: 'Resource type')

page.choose('etd_visibility_open')
expect(page).to have_content('Please note, making something visible to the world (i.e. marking this as Public) may be viewed as publishing which could impact your ability to')
find('#agreement').click

click_on('Save')
click_button('with_files_submit')
expect(page).to have_content('My Test Work')
expect(page).to have_content("Your files are being processed by Hyku in the background.")
end
Expand Down
7 changes: 4 additions & 3 deletions spec/helpers/application_helper_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

RSpec.describe ApplicationHelper do
RSpec.describe ApplicationHelper, type: :helper do
describe "#markdown" do
let(:header) { '# header' }
let(:bold) { '*bold*' }
Expand All @@ -13,8 +13,9 @@

describe '#local_for' do
context 'when term is missing' do
subject { helper.locale_for(type: 'labels', record_class: "account", term: :very_much_missing) }
it { is_expected.to be_a(String) }
it 'returns nil' do
expect(helper.locale_for(type: 'labels', record_class: "account", term: :very_much_missing)).to be_nil
end
end
end
end

0 comments on commit 6fda7fd

Please sign in to comment.