Sha256: a9a369c6ffb4ce583c83ce9e4f2d3a2aa7ce5f39cb433ef5185f9faae4125c74
Contents?: true
Size: 520 Bytes
Versions: 1
Compression:
Stored size: 520 Bytes
Contents
require 'spec_helper' feature "Authorized Access" do given(:user) { create(:user) } given(:admin) { create(:user, super_admin: true) } given(:category) { create(:category, num_posts: 1) } given(:post) { category.posts.first } scenario 'should not show button if not authorized' do login_and_navigate_to_post user, post has_no_action_item "Peer Review" end scenario 'should show button if authorized' do login_and_navigate_to_post admin, post has_action_item "Peer Review" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_admin-workflow-0.1.0 | spec/features/authorization_spec.rb |