Sha256: c98e5c99d81587256940fedce7b79a13a48894f35042cb01c509a34f2a129b44

Contents?: true

Size: 420 Bytes

Versions: 3

Compression:

Stored size: 420 Bytes

Contents

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

class GeneratorsTest < Rails::Generators::TestCase
  tests Crumbs::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/crumbs.rb'
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
crumbs-2.0.2 test/generator_test.rb
crumbs-1.2.1 test/generator_test.rb
crumbs-1.2.0 test/generator_test.rb