Sha256: 9aeefebdcfea936fa67689c59fd8a2f2a1ee01e0f6256922be365fcca809f904

Contents?: true

Size: 648 Bytes

Versions: 2

Compression:

Stored size: 648 Bytes

Contents

require 'rubygems'

gem 'pelle-oauth', '0.3.6'
require 'oauth'

require 'spec_helper'

describe "OauthActiveResource" do
  
  it "should register a new Module fork" do
    cl = TestClient.register
  end
  
  it "should destroy it self" do
    consumer_token = OAuth::ConsumerToken.new('test123','test123')
    access_token = OAuth::AccessToken.new(consumer_token, 'access_token', 'access_secret')
    
    old_count = TestClient.constants.count      
    sc = TestClient.register({:access_token => access_token })
    TestClient.constants.count.should be (old_count+1)
    sc.destroy
    TestClient.constants.count.should be old_count   
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
jwagener-oauth-active-resource-0.4.1 spec/oauth_active_resource_spec.rb
oauth-active-resource-0.4.2 spec/oauth_active_resource_spec.rb