Sha256: 82d78ad51dd8a824e4ee1940a1b100d029d86cfa6b81852cbcaecc74c001cbdb

Contents?: true

Size: 458 Bytes

Versions: 7

Compression:

Stored size: 458 Bytes

Contents

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

describe Actor do
  it "should generate permalink" do
    assert Factory(:actor).permalink.present?
  end

  it "should generate different permalink" do
    a = Factory(:actor)
    b = Factory(:actor, :name => a.name)

    a.name.should == b.name
    a.permalink.should_not == b.permalink
  end

  it "should generate relations" do
    assert Factory(:actor).relations.present?
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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