diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index fbeebd7d..c181c1a7 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -39,7 +39,7 @@ RSpec.configure do |config| # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures - config.fixture_path = "#{::Rails.root}/spec/fixtures" + config.fixture_path = Rails.root.join('spec/fixtures').to_s config.include RightsXMLFixtures # If you're not using ActiveRecord, or you'd prefer not to run each of your # examples within a transaction, remove the following line or assign false diff --git a/spec/services/iiif_info_service_spec.rb b/spec/services/iiif_info_service_spec.rb index 05ddebb5..6af65bb0 100644 --- a/spec/services/iiif_info_service_spec.rb +++ b/spec/services/iiif_info_service_spec.rb @@ -185,7 +185,7 @@ it 'advertises support for both login and external authentication' do expect(image_info['service']).to be_present expect(image_info['service'].length).to eq 2 - expect(image_info['service'].map { |x| x['profile'] }).to match_array [ + expect(image_info['service'].pluck('profile')).to match_array [ 'http://iiif.io/api/auth/1/login', 'http://iiif.io/api/auth/1/external' ]