Sha256: e22141a8f63bd9962a44410ad9d84a46fd2678c069cea5d2c7685d8b23dd3900

Contents?: true

Size: 418 Bytes

Versions: 19

Compression:

Stored size: 418 Bytes

Contents

require File.join(File.dirname(__FILE__), '/../../test_helper')

class GroupTest < ActiveSupport::TestCase
  def test_valid
    assert Factory.build(:group).valid?
  end

  test "Find guest group via method" do
    expected = Group.find_by_code(Group::GUEST_CODE)
    assert_not_nil expected, "Validates that our fixture code is loading a guest user into the database."
    assert_equal expected, Group.guest
  end
end

Version data entries

19 entries across 19 versions & 6 rubygems

Version Path
browsercms-3.1.5 test/unit/models/group_test.rb
browsercms-3.1.4 test/unit/models/group_test.rb
browsercms-3.1.3 test/unit/models/group_test.rb
bf4-browsercms-3.1.0 test/unit/models/group_test.rb
drujensen-browsercms-3.2.0 test/unit/models/group_test.rb
browsercmsi-3.1.2 test/unit/models/group_test.rb
browsercms-3.1.2 test/unit/models/group_test.rb
browsercms-3.1.1 test/unit/models/group_test.rb
browsercmsi-3.1.1 test/unit/models/group_test.rb
browsercmsi-3.1.0 test/unit/models/group_test.rb
browsercms-3.1.0 test/unit/models/group_test.rb
we5-browsercms-3.1.0 test/unit/models/group_test.rb
browsercms-3.0.6 test/unit/models/group_test.rb
browsercms-3.0.5 test/unit/models/group_test.rb
we5-browsercms-3.0.5.1 test/unit/models/group_test.rb
we5-browsercms-3.0.5 test/unit/models/group_test.rb
browsercms_s3-3.0.5 test/unit/models/group_test.rb
browsercms-3.0.4 test/unit/models/group_test.rb
browsercms-3.0.3 test/unit/models/group_test.rb