Sha256: 4a6844964c804856a648248d75d3a92b923e9b5a534746047c04a0c3abacd876
Contents?: true
Size: 612 Bytes
Versions: 3
Compression:
Stored size: 612 Bytes
Contents
require 'test_helper' require 'rails/generators' require 'generators/indexes/install/install_generator' require 'generators/index/index_generator' class GeneratorTest < Rails::Generators::TestCase destination Rails.root.join('tmp') teardown do FileUtils.rm_rf 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
indexes-4.0.0.2 | test/generator_test.rb |
indexes-4.0.0.1 | test/generator_test.rb |
indexes-4.0.0.0 | test/generator_test.rb |