Sha256: e42d693cb416b8cef6d2a8f9b359f07c4e5e36c2f3473922cbecfbcc0fc732e2

Contents?: true

Size: 573 Bytes

Versions: 27

Compression:

Stored size: 573 Bytes

Contents

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

describe Group do
  it "should save description" do
    g = Group.create(:name => "Test",
                     :description => "Testing description",
                     :_founder => Factory(:user).slug)

    g.reload.description.should be_present
  end

  it "should have activity_object" do
    Factory(:group).activity_object.should be_present
  end

  it "should save tag list" do
    g = Factory(:group)

    g.tag_list = "bla, ble"
    g.save!

    g.reload.tag_list.should be_present
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
social_stream-base-0.9.4 spec/models/group_spec.rb
social_stream-base-0.9.3 spec/models/group_spec.rb
social_stream-base-0.9.2 spec/models/group_spec.rb
social_stream-base-0.9.1 spec/models/group_spec.rb
social_stream-base-0.9.0 spec/models/group_spec.rb
social_stream-base-0.8.2 spec/models/group_spec.rb
social_stream-base-0.8.1 spec/models/group_spec.rb
social_stream-base-0.8.0 spec/models/group_spec.rb
social_stream-base-0.7.11 spec/models/group_spec.rb
social_stream-base-0.7.10 spec/models/group_spec.rb
social_stream-base-0.7.9 spec/models/group_spec.rb
social_stream-base-0.7.8 spec/models/group_spec.rb
social_stream-base-0.7.7 spec/models/group_spec.rb
social_stream-base-0.7.6 spec/models/group_spec.rb
social_stream-base-0.7.5 spec/models/group_spec.rb
social_stream-base-0.7.4 spec/models/group_spec.rb
social_stream-base-0.7.3 spec/models/group_spec.rb
social_stream-base-0.7.2 spec/models/group_spec.rb
social_stream-base-0.7.1 spec/models/group_spec.rb
social_stream-base-0.7.0 spec/models/group_spec.rb