Sha256: 45a9fa8d64dd330fcc61ff46c7202ecc9db21b5601bc05eeb2fd2efe7c9e405b
Contents?: true
Size: 708 Bytes
Versions: 18
Compression:
Stored size: 708 Bytes
Contents
require File.expand_path('../helper', __FILE__) require File.expand_path('../../lib/postageapp/rails/rails', __FILE__) 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
18 entries across 18 versions & 1 rubygems