Sha256: 6b8e08fe2a26b43847f2ed2b0056e4a55182322261a93b5aae3118cedc4b2695

Contents?: true

Size: 428 Bytes

Versions: 2

Compression:

Stored size: 428 Bytes

Contents

require 'test_helper'
require 'rails/generators'
require 'generators/abilities/install_generator'

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

  teardown do
    FileUtils.rm_rf self.destination_root
  end

  test "generate initializer" do
    run_generator
    assert_file 'config/initializers/abilities.rb'
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
abilities-0.0.2 test/generator_test.rb
abilities-0.0.1 test/generator_test.rb