Sha256: 18670813d06181f8ba5975e6454230cfc60a0240e15690dac430083db7c73499

Contents?: true

Size: 413 Bytes

Versions: 4

Compression:

Stored size: 413 Bytes

Contents

require 'test_helper'
require 'rails/generators'
require 'generators/ads/install_generator'

class GeneratorsTest < ::Rails::Generators::TestCase
  tests Ads::InstallGenerator
  destination File.expand_path('../tmp', File.dirname(__FILE__))

  teardown do
    FileUtils.rm_rf self.destination_root
  end

  test 'initializer generator' do
    run_generator
    assert_file 'config/initializers/ads.rb'
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ads-rails-0.2.3 test/generator_test.rb
ads-rails-0.2.2 test/generator_test.rb
ads-rails-0.2.1 test/generator_test.rb
ads-rails-0.2.0 test/generator_test.rb