Guest User

Untitled

a guest
Feb 21st, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. require File.dirname(__FILE__) + '/../../../spec_helper'
  2.  
  3. context "Asking to edit a Venue" do
  4. fixtures :venues, :venue_comments, :users, :roles, :rights
  5. controller_name 'admin/venue'
  6.  
  7. setup do
  8. roles(:admin).rights << rights(:admin)
  9. users(:rod).roles << roles(:admin)
  10. @session[:user] = users(:rod).id
  11. get 'get_venue', :id => 2
  12. end
  13.  
  14. specify "should get a venue" do
  15. assigns('venue').should_not_be_nil
  16. end
  17.  
  18. specify "should get the right venue" do
  19. assigns('venue').should_equal venues(:monsoon)
  20. end
  21. end
Add Comment
Please, Sign In to add comment