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.
.rspec
1 1 --color
2 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 9 end
10 10  
11 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 13 expect(notification_service.problem_url(problem)).to start_with 'https://'
14 14 end
15 15 end
... ...