Sha256: df5f2e38144bb93ccc3096fc010131cb9ba4b47f628ea7b8f61ca02b7e9bdec8

Contents?: true

Size: 427 Bytes

Versions: 2

Compression:

Stored size: 427 Bytes

Contents

require 'test_helper'
require 'rails/generators'
require 'generators/crumbs/install_generator'

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

  teardown do
    FileUtils.rm_rf self.destination_root
  end

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

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
crumbs-2.1.2 test/generator_test.rb
crumbs-2.1.1 test/generator_test.rb