mattly (owner)

Revisions

  • 6eba21 mattly Sun May 17 01:12:14 -0700 2009
gist: 112960 Download_button fork
public
Public Clone URL: git://gist.github.com/112960.git
Text only
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
describe MyApp do
  include Sinatra::Test
  
  before do
    @app = MyApp
    setup_site
    setup_user
  end
  
  describe "when logged in" do
    before do
      # debugger;
      get('/secret', {}, :session => {:user_id => @user.id})
    end
    
    test "it doesn't redirect to login" do
      response.status.must_equal 200
    end
  end
end