Sha256: 71b7a953058030f979d13ea9cc7314678f9cf322963deb142d5d69526166e467
Contents?: true
Size: 561 Bytes
Versions: 9
Compression:
Stored size: 561 Bytes
Contents
require File.dirname(__FILE__) + '/../test_helper' require File.dirname(__FILE__) + '/../../lib/provisional/rails_application' class RailsApplicationTest < Test::Unit::TestCase def test_initialize Dir.expects(:chdir).with('path') Rails::Generator::Base.expects(:use_application_sources!) generator_stub = stub() generator_stub.expects(:run).with(%w(. -m template_path), :generator => 'app') Rails::Generator::Scripts::Generate.expects(:new).returns(generator_stub) Provisional::RailsApplication.new('path', 'template_path') end end
Version data entries
9 entries across 9 versions & 1 rubygems