Sha256: 448bc3698a9425373389e68f208bdbf48d470d3a6f5b6af7169b79fb70bf06a9

Contents?: true

Size: 801 Bytes

Versions: 49

Compression:

Stored size: 801 Bytes

Contents

require File.join(File.dirname(__FILE__), "test_generator_helper.rb")

class TestInstallRspecGenerator < Test::Unit::TestCase
  include RubiGen::GeneratorTestHelper

  def setup
    bare_setup
  end
  
  def teardown
    bare_teardown
  end
  
  def test_generator_without_options
    name = File.basename(File.expand_path(APP_ROOT))
    run_generator('install_rspec', [name], sources)
    assert_directory_exists("spec")
    assert_directory_exists("tasks")
    assert_generated_file("spec/#{name}_spec.rb")
    assert_generated_file("spec/spec_helper.rb")
    assert_generated_file("tasks/rspec.rake")
  end
  
  private
  def sources
    [RubiGen::PathSource.new(:test, File.join(File.dirname(__FILE__),"..", generator_path))
    ]
  end
  
  def generator_path
    "rubygems_generators"
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
newgem-0.21.0 test/test_install_rspec_generator.rb
newgem-0.19.1 test/test_install_rspec_generator.rb
newgem-0.20.0 test/test_install_rspec_generator.rb
newgem-0.23.1 test/test_install_rspec_generator.rb
newgem-0.25.0 test/test_install_rspec_generator.rb
newgem-0.22.0 test/test_install_rspec_generator.rb
newgem-0.22.1 test/test_install_rspec_generator.rb
newgem-0.23.0 test/test_install_rspec_generator.rb
newgem-0.22.2 test/test_install_rspec_generator.rb
newgem-0.24.0 test/test_install_rspec_generator.rb
newgem-0.27.0 test/test_install_rspec_generator.rb
newgem-0.28.0 test/test_install_rspec_generator.rb
newgem-0.29.0 test/test_install_rspec_generator.rb
newgem-1.0.0 test/test_install_rspec_generator.rb
newgem-1.0.5 test/test_install_rspec_generator.rb
newgem-1.0.1 test/test_install_rspec_generator.rb
newgem-1.0.2 test/test_install_rspec_generator.rb
newgem-1.0.3 test/test_install_rspec_generator.rb
newgem-1.0.4 test/test_install_rspec_generator.rb
newgem-1.0.6 test/test_install_rspec_generator.rb