Sha256: b1f650e22c385e6467ba450f64671e49c96b300ab48a52bc93eb4bb25cd44575
Contents?: true
Size: 590 Bytes
Versions: 9
Compression:
Stored size: 590 Bytes
Contents
require 'helper' include Safubot describe Safubot::KnownUser do before(:all) do Safubot::Test.clean_environment end it 'should merge two user identities' do user1 = KnownUser.create(:name => "melissa", :twitter => { 'screen_name' => '0xabad1dea' }) user2 = KnownUser.create(:name => "abadidea", :jid => "melissa@somewhere.org") user1.merge(user2) KnownUser.find_by_name('abadidea').should == nil user = KnownUser.find_by_name('melissa') user.should_not == nil user.twitter['screen_name'].should == '0xabad1dea' user.jid.should == 'melissa@somewhere.org' end end
Version data entries
9 entries across 9 versions & 1 rubygems