Sha256: f73551d3cf282865a9ae3e85371129f0c498b31a0c1d2bf72f5abd554c88d882

Contents?: true

Size: 399 Bytes

Versions: 2

Compression:

Stored size: 399 Bytes

Contents

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

class GeneratorsTest < ::Rails::Generators::TestCase
  destination Rails.root.join('tmp')

  teardown do
    FileUtils.rm_rf destination_root
  end

  test 'install' do
    self.class.tests Ads::Generators::InstallGenerator
    run_generator
    assert_file 'config/initializers/ads.rb'
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ads-rails-4.0.0.1 test/generator_test.rb
ads-rails-4.0.0.0 test/generator_test.rb