Sha256: 8764eb784c6db66e7a7e5769bd84951630432b08bca5270bf001ef8b10a5fd70
Contents?: true
Size: 225 Bytes
Versions: 2
Compression:
Stored size: 225 Bytes
Contents
require 'test_helper' class ChangesTest < ActiveSupport::TestCase test "record changes" do user = User.new assert user.cannot?(:destroy, Post) user.admin = true assert user.can?(:destroy, Post) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
abilities-0.0.2 | test/changes_test.rb |
abilities-0.0.1 | test/changes_test.rb |