Guest User

Untitled

a guest
Jun 20th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. describe WelcomeHelper do
  2. context "when generating the manage samples link" do
  3. it "should check the current user against the standard administrative roles" do
  4. @current_user = double("A user")
  5. @administrative_roles = %w{submitter reviewer admin}
  6.  
  7. helper.stub!(:current_user).and_return(@current_user)
  8.  
  9. helper.should_receive!(:manage_samples_link_for).with(@current_user, @administrative_roles)
  10.  
  11. helper.manage_samples_link
  12. end
  13. end
  14. end
Add Comment
Please, Sign In to add comment