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