Sha256: 359ac563a5c9e639f5cc610244d2f6b1ffe9786452d8e9629aa7217d4561e24c
Contents?: true
Size: 647 Bytes
Versions: 7
Compression:
Stored size: 647 Bytes
Contents
require 'spec/spec_helper' class User include RPXNow::UserIntegration def id 5 end end describe RPXNow::UserProxy do before { @user = User.new } it "has a proxy" do @user.rpx.class.should == RPXNow::UserProxy end it "has identifiers" do RPXNow.should_receive(:mappings).with(@user.id).and_return(['identifiers']) @user.rpx.identifiers.should == ['identifiers'] end it "can map" do RPXNow.should_receive(:map).with('identifier', @user.id) @user.rpx.map('identifier') end it "can unmap" do RPXNow.should_receive(:unmap).with('identifier', @user.id) @user.rpx.unmap('identifier') end end
Version data entries
7 entries across 7 versions & 2 rubygems