Sha256: a04d5ff31361a5319334e1631482c41110fcc591b7ca13fa36cfce0094e2b36a

Contents?: true

Size: 517 Bytes

Versions: 7

Compression:

Stored size: 517 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe User do
  it "should find by permalink" do
    user = Factory(:user)

    assert user.should == User.find_by_permalink(user.permalink)
  end

  it "should represent" do
    tie =   Factory(:member)
    group = tie.sender_subject
    user =  tie.receiver_subject

    assert user.represented.should include(group)

    tie = Factory(:partner, :receiver => user.actor)

    assert ! user.represented.include?(tie.sender_subject)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
social_stream-0.3.6 spec/models/user_spec.rb
social_stream-0.3.5 spec/models/user_spec.rb
social_stream-0.3.4 spec/models/user_spec.rb
social_stream-0.3.3 spec/models/user_spec.rb
social_stream-0.3.2 spec/models/user_spec.rb
social_stream-0.3.1 spec/models/user_spec.rb
social_stream-0.3.0 spec/models/user_spec.rb