Sha256: 28d5fccceb2577c5bd68fb76e25c2c6e665590f981802f37e5bdcc0e38eb25c6

Contents?: true

Size: 694 Bytes

Versions: 11

Compression:

Stored size: 694 Bytes

Contents

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

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

11 entries across 11 versions & 5 rubygems

Version Path
Amunds-rpx_now-0.5.8 spec/rpx_now/user_proxy_spec.rb
Chrononaut-rpx_now-0.5.6 spec/rpx_now/user_proxy_spec.rb
Chrononaut-rpx_now-0.5.9 spec/rpx_now/user_proxy_spec.rb
grosser-rpx_now-0.5.10 spec/rpx_now/user_proxy_spec.rb
grosser-rpx_now-0.5.4 spec/rpx_now/user_proxy_spec.rb
grosser-rpx_now-0.5.6 spec/rpx_now/user_proxy_spec.rb
grosser-rpx_now-0.5.7 spec/rpx_now/user_proxy_spec.rb
grosser-rpx_now-0.5.8 spec/rpx_now/user_proxy_spec.rb
grosser-rpx_now-0.5.9 spec/rpx_now/user_proxy_spec.rb
jackdempsey-rpx_now-0.5.8 spec/rpx_now/user_proxy_spec.rb
rpx_now-0.5.10 spec/rpx_now/user_proxy_spec.rb