Sha256: 227a6a8e5b9c430d16863f4ba7ef6613dbddfed4a948a3fa8d32f14a1b71800e

Contents?: true

Size: 809 Bytes

Versions: 1

Compression:

Stored size: 809 Bytes

Contents

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

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

  def setup
    rubygems_setup
  end
  
  def teardown
    rubygems_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

1 entries across 1 versions & 1 rubygems

Version Path
newgem-0.13.0 test/test_install_rspec_generator.rb