Sha256: 92962f848ad88e7b67189723c813e63f115d4ef9f15e13340a255d645a316cd1
Contents?: true
Size: 640 Bytes
Versions: 1
Compression:
Stored size: 640 Bytes
Contents
require 'test_helper' require 'rails/generators' require 'generators/indexes/install_generator' require 'generators/indexes/index_generator' class GeneratorsTest < Rails::Generators::TestCase destination File.expand_path('../tmp', File.dirname(__FILE__)) teardown do FileUtils.rm_rf self.destination_root end test 'install' do self.class.tests Indexes::Generators::InstallGenerator run_generator assert_file 'config/initializers/indexes.rb' end test 'index' do self.class.tests Indexes::Generators::IndexGenerator run_generator %w(products) assert_file 'app/indexes/products_index.rb' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
indexes-0.0.1 | test/generators_test.rb |