require '../test_helper' require '../../lib/mambanation/base.rb' class BaseTest < Test::Unit::TestCase context "base" do setup do oauth = Mambanation::OAuth.new("token", "secret") @access_token = Mambanation::OAuth::AccessToken.new(oauth.consumer, "atoken", "asecret") oauth.stubs(:access_token).returns(@access_token) @mambanation = Mambanation::Base.new(oauth) end context "initialize" do should "require a client" do @mambanation.client.should respond_to(:get) @mambanation.client.should respond_to(:post) end end end end