spec/support/koala_test.rb in koala-1.8.0 vs spec/support/koala_test.rb in koala-1.9.0rc1

- old
+ new

@@ -53,20 +53,15 @@ # set up a global before block to set the token for tests # set the token up for RSpec.configure do |config| config.before :each do @token = KoalaTest.oauth_token - Koala::Utils.stub(:deprecate) # never fire deprecation warnings + allow(Koala::Utils).to receive(:deprecate) # never fire deprecation warnings + # Clean up Koala config + Koala.reset_config end config.after :each do - # Clean up Koala config - Koala.configure do |config| - Koala::HTTPService::DEFAULT_SERVERS.each_pair do |k, v| - config.send("#{k}=", v) - end - end - # if we're working with a real user, clean up any objects posted to Facebook # no need to do so for test users, since they get deleted at the end if @temporary_object_id && KoalaTest.real_user? raise "Unable to locate API when passed temporary object to delete!" unless @api