Sha256: 4148b115e387d3c38a198c5c1b7b20fd216d86e62b0634576f71a55347ae67ae
Contents?: true
Size: 293 Bytes
Versions: 2
Compression:
Stored size: 293 Bytes
Contents
require 'test_helper' class ViewTest < ActionView::TestCase test "can helper" do assert can?(:create, post) end test "cannot helper" do assert cannot?(:read, post) end private def post @post ||= Post.new end def current_user @user ||= User.new end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
abilities-0.0.2 | test/view_test.rb |
abilities-0.0.1 | test/view_test.rb |