Sha256: bd39b875400be51e0a3986fa24e5f810f526b65a5e3ce0572c37fd8820f2f171
Contents?: true
Size: 293 Bytes
Versions: 4
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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
abilities-0.1.2 | test/view_test.rb |
abilities-0.1.0 | test/view_test.rb |
abilities-0.0.4 | test/view_test.rb |
abilities-0.0.3 | test/view_test.rb |