spec/github_spec.rb in github_api-0.4.6 vs spec/github_spec.rb in github_api-0.4.7

- old
+ new

@@ -1,14 +1,14 @@ -require File.expand_path(File.dirname(__FILE__) + '/spec_helper') +# encoding: utf-8 +require 'spec_helper' + describe Github do - before do - subject.user = nil - subject.repo = nil - subject.oauth_token = nil - subject.basic_auth = nil + after do + subject.set_defaults + reset_authentication_for subject end it "should respond to 'new' message" do subject.should respond_to :new end @@ -20,10 +20,9 @@ it "should respond to 'configure' message" do subject.should respond_to :configure end describe "setting configuration options" do - it "should return default adapter" do subject.adapter.should == Github::Configuration::DEFAULT_ADAPTER end it "should allow to set adapter" do