Skip to content

Commit 3aa93f9

Browse files
authored
Merge pull request #46 from projectblacklight/update_ruby
Update the tested ruby and rails versions
2 parents a3ea713 + 946b444 commit 3aa93f9

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ notifications:
55
email: false
66

77
rvm:
8-
- 2.3.1
8+
- 2.5.1
99

1010
env:
11-
- "RAILS_VERSION=5.0.0.1"
11+
- "RAILS_VERSION=5.2.0"
12+
- "RAILS_VERSION=5.1.0"
1213

1314
global_env:
1415
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true

spec/unit/blacklight/access_controls/search_builder_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@
2828
let(:ability) { instance_double(Ability, user_groups: [], current_user: user) }
2929

3030
it 'is called with debug' do
31-
expect(Rails.logger).to receive(:debug).with(/^Solr parameters/)
31+
allow(Rails.logger).to receive(:debug)
3232
search_builder.send(:apply_gated_discovery, {})
33+
expect(Rails.logger).to have_received(:debug).with(/^Solr parameters/)
3334
end
3435
end
3536

spec/unit/enforcement_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ class MyController
4040
let(:ability) { instance_double(Ability, user_groups: [], current_user: user) }
4141

4242
it 'is called with debug' do
43-
expect(Rails.logger).to receive(:debug).with(/^Solr parameters/)
43+
allow(Rails.logger).to receive(:debug)
4444
controller.send(:apply_gated_discovery, {})
45+
expect(Rails.logger).to have_received(:debug).with(/^Solr parameters/)
4546
end
4647
end
4748

0 commit comments

Comments
 (0)