Commit 8bab691035540b8c283a23cb7076ada02ffaac8a

Authored by Stephen Crosby
2 parents fba9b79c dd98263d
Exists in master and in 1 other branch production

Merge pull request #965 from rud/chore/rspec-random-order

RSpec: run in random order
.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
... ...