Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Rspec monkeypatching #171

Merged
merged 1 commit into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion spec/features/gallery_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'spec_helper'

RSpec.describe "Gallery view", :type => :feature do
RSpec.describe "Gallery view" do
before { visit search_catalog_path :q => 'medicine', :view => 'gallery' }

it "displays results in a galley view" do
Expand Down
2 changes: 1 addition & 1 deletion spec/features/masonry_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'spec_helper'

describe "Masonry view", :type => :feature do
RSpec.describe "Masonry view" do
before { visit search_catalog_path :q => 'medicine', :view => 'masonry' }

it "should display results in a galley view" do
Expand Down
3 changes: 1 addition & 2 deletions spec/features/slideshow_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'spec_helper'

RSpec.describe 'Slideshow', default_max_wait_time: 20, js: true do

RSpec.describe 'Slideshow', js: true do
it 'opens when one of the grid panes is clicked' do
visit search_catalog_path( q: 'medicine', view: 'slideshow' )
expect(page).to have_content 'You searched for:'
Expand Down
2 changes: 1 addition & 1 deletion spec/models/concerns/openseadragon_solr_document_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'spec_helper'

describe Blacklight::Gallery::OpenseadragonSolrDocument do
RSpec.describe Blacklight::Gallery::OpenseadragonSolrDocument do
subject { SolrDocument.new(fields).to_openseadragon(view_config) }

context 'when configured for the view' do
Expand Down
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@

RSpec.configure do |c|
c.infer_spec_type_from_file_location!
c.disable_monkey_patching!
c.include ViewComponent::TestHelpers, type: :component
end
2 changes: 1 addition & 1 deletion spec/views/catalog/_openseadragon_default.html.erb_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'spec_helper'

describe "catalog/openseadragon_default" do
RSpec.describe "catalog/openseadragon_default" do
let(:document) { SolrDocument.new }
let(:blacklight_config) { Blacklight::Configuration.new }
let(:p) { "catalog/openseadragon_default" }
Expand Down
Loading