Sha256: 4133e453403406a1a19dc6a023e419d5137f3cf09fa735d80b877fa3ecdd56e1

Contents?: true

Size: 594 Bytes

Versions: 1

Compression:

Stored size: 594 Bytes

Contents

require 'sinatra'

class TestApp < Sinatra::Base

  set :root, "#{File.dirname(File.expand_path(__FILE__))}/../fixtures"
  set :app_dir, "#{File.dirname(File.expand_path(__FILE__))}/../fixtures/app"
  set :public_dir, "#{File.dirname(File.expand_path(__FILE__))}/../fixtures/public"

  enable :raise_errors
  Sinatra::Base.set :environment, :test

  register Sinatra::Firudo
  Sinatra::Firudo.filter_attributes :password, :password_confirmation

  get '/status' do
    login = params[:login]
    password = params[:password]
    password_confirmation = params[:password_confirmation]
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
firudo-1.1.4 spec/sinatra/test_app.rb