Sha256: 27df28b6dcfbb14e7b15a97417b9fa765105205f941b6297b37088ae9dea3559

Contents?: true

Size: 419 Bytes

Versions: 1

Compression:

Stored size: 419 Bytes

Contents

require 'test_helper'
require 'rails/generators'
require 'generators/pagers/install_generator'

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

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pagers-3.1.0 test/generator_test.rb