-
-
Save karlseguin/2488496 to your computer and use it in GitHub Desktop.
Simple controller mock
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it "assigns all organisations as @organisations" do | |
org.stub!(:all).and_return("leto") | |
get :index, {}, valid_session | |
assigns(:organisations).should == "leto" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment