daily pastebin goal
64%
SHARE
TWEET

Untitled

a guest Jun 20th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top