Sha256: 45c0b4a31a6fab039938abe5557f99ab12de4fbfca1acab78af65615c68142b0

Contents?: true

Size: 729 Bytes

Versions: 1

Compression:

Stored size: 729 Bytes

Contents

require File.expand_path("../spec_helper", File.dirname(__FILE__))
require 'rpx_now/user_integration'

class User
  include RPXNow::UserIntegration

  def id
    5
  end
end

describe RPXNow::UserProxy do
  before do
    RPXNow.unmap('http://test.myopenid.com', 5)
  end

  it "has identifiers" do
    RPXNow.map('http://test.myopenid.com', 5)
    User.new.rpx.identifiers.should == ['http://test.myopenid.com']
  end

  it "can map" do
    User.new.rpx.map('http://test.myopenid.com')
    User.new.rpx.identifiers.should == ['http://test.myopenid.com']
  end

  it "can unmap" do
    RPXNow.map('http://test.myopenid.com', 5)
    User.new.rpx.unmap('http://test.myopenid.com')
    User.new.rpx.identifiers.should == []
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
grosser-rpx_now-0.5.3 spec/rpx_now/user_proxy_spec.rb