Sha256: 83350783d6be7e58f275af0404ff19fe819a2426e073d19a29f1ee953a4fb03b
Contents?: true
Size: 664 Bytes
Versions: 6
Compression:
Stored size: 664 Bytes
Contents
require File.expand_path('../helper', __FILE__) require 'postageapp/rails' class RailsInitializationTest < Test::Unit::TestCase include ConstantDefinitions def test_initialization rails = Module.new do def self.version '9.9.9' end def self.root 'RAILS ROOT' end def self.env "RAILS ENV" end end define_constant('Rails', rails) PostageApp::Rails.initialize assert_equal 'Rails 9.9.9', PostageApp.configuration.framework assert_equal 'RAILS ROOT', PostageApp.configuration.project_root assert_equal 'RAILS ENV', PostageApp.configuration.environment end end
Version data entries
6 entries across 6 versions & 1 rubygems