Skip to content

Commit

Permalink
Update tests to reflect defaulting to open visibility default
Browse files Browse the repository at this point in the history
  • Loading branch information
bbpennel committed Oct 26, 2023
1 parent f177411 commit 04ae92d
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion spec/forms/hyrax/article_form_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@
describe '#visibility' do
subject { form.visibility }

it { is_expected.to eq 'restricted' }
it { is_expected.to eq 'open' }
end

describe '#agreement_accepted' do
Expand Down
2 changes: 1 addition & 1 deletion spec/forms/hyrax/artwork_form_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
describe '#visibility' do
subject { form.visibility }

it { is_expected.to eq 'restricted' }
it { is_expected.to eq 'open' }
end

describe '#agreement_accepted' do
Expand Down
2 changes: 1 addition & 1 deletion spec/forms/hyrax/data_set_form_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@
describe '#visibility' do
subject { form.visibility }

it { is_expected.to eq 'restricted' }
it { is_expected.to eq 'open' }
end

describe '#agreement_accepted' do
Expand Down
2 changes: 1 addition & 1 deletion spec/forms/hyrax/dissertation_form_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@
describe '#visibility' do
subject { form.visibility }

it { is_expected.to eq 'restricted' }
it { is_expected.to eq 'open' }
end

describe '#agreement_accepted' do
Expand Down
2 changes: 1 addition & 1 deletion spec/forms/hyrax/general_form_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@
describe '#visibility' do
subject { form.visibility }

it { is_expected.to eq 'restricted' }
it { is_expected.to eq 'open' }
end

describe '#agreement_accepted' do
Expand Down
2 changes: 1 addition & 1 deletion spec/forms/hyrax/honors_thesis_form_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@
describe '#visibility' do
subject { form.visibility }

it { is_expected.to eq 'restricted' }
it { is_expected.to eq 'open' }
end

describe '#agreement_accepted' do
Expand Down
2 changes: 1 addition & 1 deletion spec/forms/hyrax/journal_form_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
describe '#visibility' do
subject { form.visibility }

it { is_expected.to eq 'restricted' }
it { is_expected.to eq 'open' }
end

describe '#agreement_accepted' do
Expand Down
2 changes: 1 addition & 1 deletion spec/forms/hyrax/masters_paper_form_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@
describe '#visibility' do
subject { form.visibility }

it { is_expected.to eq 'restricted' }
it { is_expected.to eq 'open' }
end

describe '#agreement_accepted' do
Expand Down
2 changes: 1 addition & 1 deletion spec/forms/hyrax/multimed_form_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
describe '#visibility' do
subject { form.visibility }

it { is_expected.to eq 'restricted' }
it { is_expected.to eq 'open' }
end

describe '#agreement_accepted' do
Expand Down
2 changes: 1 addition & 1 deletion spec/forms/hyrax/scholarly_work_form_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
describe '#visibility' do
subject { form.visibility }

it { is_expected.to eq 'restricted' }
it { is_expected.to eq 'open' }
end

describe '#agreement_accepted' do
Expand Down
2 changes: 1 addition & 1 deletion spec/helpers/migration_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
'date_issued' => '2019-10-02',
'edition' => 'preprint',
'alternative_title' => ['another title for an article'],
'visibility' => 'restricted'
'visibility' => 'open'
}
end

Expand Down
2 changes: 1 addition & 1 deletion spec/indexers/hyrax/collection_indexer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
'thumbnail_path_ss' => thumbnail,
'member_of_collection_ids_ssim' => [col1id],
'member_of_collections_ssim' => [col1title],
'visibility_ssi' => 'restricted',
'visibility_ssi' => 'open',
'date_issued_sort_ssi' => col1created,
'title_sort_ssi' => col1title
}
Expand Down

0 comments on commit 04ae92d

Please sign in to comment.