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

Version Path
postageapp-1.0.23 test/rails_initialization_test.rb
postageapp-1.0.22 test/rails_initialization_test.rb
postageapp-1.0.21 test/rails_initialization_test.rb
postageapp-1.0.20 test/rails_initialization_test.rb
postageapp-1.0.19 test/rails_initialization_test.rb
postageapp-1.0.18 test/rails_initialization_test.rb
postageapp-1.0.17 test/rails_initialization_test.rb
postageapp-1.0.16 test/rails_initialization_test.rb
postageapp-1.0.15 test/rails_initialization_test.rb
postageapp-1.0.14 test/rails_initialization_test.rb
postageapp-1.0.13 test/rails_initialization_test.rb
postageapp-1.0.12 test/rails_initialization_test.rb
postageapp-1.0.11 test/rails_initialization_test.rb
postageapp-1.0.10 test/rails_initialization_test.rb
postageapp-1.0.9 test/rails_initialization_test.rb
postageapp-1.0.8 test/rails_initialization_test.rb
postageapp-1.0.7 test/rails_initialization_test.rb
postageapp-1.0.6 test/rails_initialization_test.rb