Sha256: ce543b16e78e76365ff74795d875654c5106e3136ade7cbce283785890cbe433
Contents?: true
Size: 692 Bytes
Versions: 3
Compression:
Stored size: 692 Bytes
Contents
require 'rails/all' require 'ecrire' require 'rails/test_help' class ActiveSupport::TestCase ActiveSupport.test_order = :sorted self.fixture_path = "#{Dir.pwd}/test/fixtures" fixtures :all # Need to quick boot an instance of Ecrire to check if a user # exists. It creates a new user if none exists so the editor can be launched pid = fork do Dir.chdir Dir.pwd + '/test/themes/template' do Ecrire::Application.initialize! ::User.first_or_create!(email: 'test@test.ca', password: 123456) end exit! end Process.wait2(pid) Dir.chdir Dir.pwd + '/test/themes/template' do Ecrire::Application.initialize! end include Warden::Test::Helpers end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ecrire-0.22.1 | test/editor/test_helper.rb |
ecrire-0.21.0 | test/editor/test_helper.rb |
ecrire-0.20.0 | test/editor/test_helper.rb |