Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

Commit

Permalink
adding missing test for case where user has zero client_slug
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Karman committed Sep 22, 2015
1 parent d467010 commit 6f05e73
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/features/client_slug_authz_spec.rb
@@ -0,0 +1,8 @@
describe "client_slug confers authz rules" do
it "rejects requests for user with no client_slug" do
user = FactoryGirl.create(:user)
login_as(user)
visit '/ncr/work_orders/new'
expect(page.status_code).to eq(403)
end
end

0 comments on commit 6f05e73

Please sign in to comment.