Sha256: 175b62d8099a907ca9ce46e51c55d3c7c297a3b6c77cb842d5ececae4cac3866

Contents?: true

Size: 364 Bytes

Versions: 35

Compression:

Stored size: 364 Bytes

Contents

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

class PermissionTest < ActiveSupport::TestCase
  def test_create
    perm = Factory(:permission, :name => "test")
    assert !Factory.build(:permission, :name => "").valid?
    assert !Factory.build(:permission, :name => "test").valid?
    assert_equal perm, Permission.named("test").first
  end
end

Version data entries

35 entries across 35 versions & 11 rubygems

Version Path
SFEley-browsercms-3.0.2 test/unit/models/permission_test.rb
buzzware-browsercms-3.0.2 test/unit/models/permission_test.rb
coredumplings-browsercms-3.0.0 test/unit/models/permission_test.rb
nate-browsercms-3.0.210 test/unit/models/permission_test.rb
nate-browsercms-3.0.211 test/unit/models/permission_test.rb
we5-browsercms-3.0.1.1 test/unit/models/permission_test.rb
webficient-browsercms-3.0.1 test/unit/models/permission_test.rb
webficient-browsercms-3.0.2 test/unit/models/permission_test.rb
webficient-browsercms-3.0.3 test/unit/models/permission_test.rb
webficient-browsercms-3.0.4 test/unit/models/permission_test.rb
browsercms-3.1.5 test/unit/models/permission_test.rb
browsercms-3.1.4 test/unit/models/permission_test.rb
browsercms-3.1.3 test/unit/models/permission_test.rb
bf4-browsercms-3.1.0 test/unit/models/permission_test.rb
drujensen-browsercms-3.2.0 test/unit/models/permission_test.rb
browsercmsi-3.1.2 test/unit/models/permission_test.rb
browsercms-3.1.2 test/unit/models/permission_test.rb
browsercms-3.1.1 test/unit/models/permission_test.rb
browsercmsi-3.1.1 test/unit/models/permission_test.rb
browsercmsi-3.1.0 test/unit/models/permission_test.rb