Skip to content

Commit

Permalink
Merge pull request #171 from projectblacklight/tests
Browse files Browse the repository at this point in the history
Disable Rspec monkeypatching
  • Loading branch information
taylor-steve authored Dec 20, 2024
2 parents 8c8090d + c73dc6d commit 48868d7
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
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

0 comments on commit 48868d7

Please sign in to comment.