Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Jun 20th, 2018 57 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  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