Sha256: 9b9527bbee0116fa3e8a9a23581c713c16dd4653a0af04d86c3ed29e48d2bc47
Contents?: true
Size: 676 Bytes
Versions: 2
Compression:
Stored size: 676 Bytes
Contents
require_relative './helper' require File.expand_path('../lib/postageapp/rails/rails', File.dirname(__FILE__)) class RailsInitializationTest < MiniTest::Test 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 const_replace(:Rails, rails) do 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 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
postageapp-1.3.1 | test/rails_initialization_test.rb |
postageapp-1.3.0 | test/rails_initialization_test.rb |