Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 62beb7c20e
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (20 sloc) 0.758 kB
# Configure Rails Envinronment
ENV["RAILS_ENV"] = "test"
require File.expand_path("../dummy/config/environment.rb", __FILE__)
require "rails/test_help"
ActionMailer::Base.delivery_method = :test
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.default_url_options[:host] = "test.com"
Rails.backtrace_cleaner.remove_silencers!
# Run any available migration
ActiveRecord::Migrator.migrate File.expand_path("../../install/db/migrate/", __FILE__)
class ActiveSupport::TestCase
fixtures :ubiquo_users
include Ubiquo::Engine.routes.url_helpers
include Rails.application.routes.mounted_helpers
private
def login(username = :josep)
session[:ubiquo] ||= {}
session[:ubiquo][:ubiquo_user_id] = ubiquo_users(username)
end
end
Jump to Line
Something went wrong with that request. Please try again.