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

Version Path
vigetlabs-provisional-2.1.11 test/unit/rails_application_test.rb
vigetlabs-provisional-2.1.12 test/unit/rails_application_test.rb
vigetlabs-provisional-2.1.3 test/unit/rails_application_test.rb
vigetlabs-provisional-2.1.4 test/unit/rails_application_test.rb
vigetlabs-provisional-2.1.5 test/unit/rails_application_test.rb
vigetlabs-provisional-2.1.6 test/unit/rails_application_test.rb
vigetlabs-provisional-2.1.7 test/unit/rails_application_test.rb
vigetlabs-provisional-2.1.8 test/unit/rails_application_test.rb
vigetlabs-provisional-2.1.9 test/unit/rails_application_test.rb