ffmike (owner)

Revisions

gist: 194392 Download_button fork
public
Public Clone URL: git://gist.github.com/194392.git
Embed All Files: show embed
Text only #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  context "An unauthenticated and unauthorized user doing a GET" do
    
    # Since we are not authenticated and authorized, we should be redirected
    # to the login page
    
    # array should hold all the methods where you're just testing redirect...
    %w(index get_annotations add_annotation_category).each do |method|
      context "on :#{method}" do
        setup do
          get method.to_sym, :id => 1
        end
        should_respond_with :redirect
      end
    end