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