Sha256: 51a8744170573ebdc20285c4013eca228ee8bbcbb3dd89f0f6c5b8c5f0cb8cdb

Contents?: true

Size: 315 Bytes

Versions: 7

Compression:

Stored size: 315 Bytes

Contents

# --- before filters

['/test_logout','/some_action','/test_should_be_logged_in'].each do |patt|
  before patt do
    require_login
  end
end

before '/test_http_basic_auth' do
  require_login_from_http_basic
end

# ----- test filters

before do
  self.class.sorcery_vars = {}
end

after do
  save_instance_vars
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sorcery-0.5.1 spec/sinatra/filters.rb
sorcery-0.5.0 spec/sinatra/filters.rb
sorcery-0.4.2 spec/sinatra/filters.rb
sorcery-0.4.1 spec/sinatra/filters.rb
sorcery-0.4.0 spec/sinatra/filters.rb
sorcery-0.3.1 spec/sinatra/filters.rb
sorcery-0.3.0 spec/sinatra/filters.rb