From dd98263d89c80ece0a5e858d0651cd58434f7430 Mon Sep 17 00:00:00 2001 From: Laust Rud Jacobsen Date: Mon, 12 Oct 2015 09:24:44 +0200 Subject: [PATCH] RSpec: run in random order --- .rspec | 1 + spec/models/notification_service/notification_service_spec.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.rspec b/.rspec index 83e16f8..2f0d715 100644 --- a/.rspec +++ b/.rspec @@ -1,2 +1,3 @@ --color --require spec_helper +--order random diff --git a/spec/models/notification_service/notification_service_spec.rb b/spec/models/notification_service/notification_service_spec.rb index 9007ee9..fae4f35 100644 --- a/spec/models/notification_service/notification_service_spec.rb +++ b/spec/models/notification_service/notification_service_spec.rb @@ -9,7 +9,7 @@ describe NotificationServices, type: 'model' do end it "it should use the protocol value specified in the config in #problem_url" do - Errbit::Config.protocol = 'https' + allow(Errbit::Config).to receive(:protocol).and_return('https') expect(notification_service.problem_url(problem)).to start_with 'https://' end end -- libgit2 0.21.2