spec/spec_helper.rb in socialcast-git-extensions-3.1.15 vs spec/spec_helper.rb in socialcast-git-extensions-3.1.17

- old
+ new

@@ -2,19 +2,18 @@ require 'ostruct' require 'bundler/setup' require 'rspec/mocks' require 'webmock/rspec' require 'pry' -RSpec::Mocks::setup(Object.new) require 'socialcast-git-extensions/cli' RSpec.configure do |config| config.mock_with :rspec config.before do ## Needed because object does not have permalink url until after it has been posted - Socialcast::CommandLine::Message.any_instance.stub(:permalink_url).and_return('http://demo.socialcast.com/messages/123') + allow_any_instance_of(Socialcast::CommandLine::Message).to receive(:permalink_url).and_return('http://demo.socialcast.com/messages/123') end def capture_with_status(stream) exit_status = 0 begin