Commit dd98263d89c80ece0a5e858d0651cd58434f7430
1 parent
5639825e
Exists in
master
and in
1 other branch
RSpec: run in random order
Fix a single spec that destructively modified the `Errbit::Config` and ruined it for other tests coming after it.
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
.rspec
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 |