Sha256: 0bc208dc4082128d48769f54a4fe2bf2631bcec23a643cf3e74e679fce95644b

Contents?: true

Size: 462 Bytes

Versions: 2

Compression:

Stored size: 462 Bytes

Contents

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

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

  teardown do
    FileUtils.rm_rf destination_root
  end

  test 'install' do
    self.class.tests Economy::Generators::InstallGenerator
    run_generator
    assert_file 'config/initializers/economy.rb'
    assert_migration 'db/migrate/create_exchanges.rb'
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
economy-4.0.1.0 test/generator_test.rb
economy-4.0.0.0 test/generator_test.rb