Commit dd98263d89c80ece0a5e858d0651cd58434f7430

Authored by Laust Rud Jacobsen
1 parent 5639825e
Exists in master and in 1 other branch production

RSpec: run in random order

Fix a single spec that destructively modified the `Errbit::Config` and ruined it for other tests coming after it.
1 --color 1 --color
2 --require spec_helper 2 --require spec_helper
  3 +--order random
spec/models/notification_service/notification_service_spec.rb
@@ -9,7 +9,7 @@ describe NotificationServices, type: 'model' do @@ -9,7 +9,7 @@ describe NotificationServices, type: 'model' do
9 end 9 end
10 10
11 it "it should use the protocol value specified in the config in #problem_url" do 11 it "it should use the protocol value specified in the config in #problem_url" do
12 - Errbit::Config.protocol = 'https' 12 + allow(Errbit::Config).to receive(:protocol).and_return('https')
13 expect(notification_service.problem_url(problem)).to start_with 'https://' 13 expect(notification_service.problem_url(problem)).to start_with 'https://'
14 end 14 end
15 end 15 end