Sha256: 6c665deeebd5b62e43f67886c028c67a9d29522dfb709d2f46f9637e2aa5abca
Contents?: true
Size: 604 Bytes
Versions: 3
Compression:
Stored size: 604 Bytes
Contents
require 'test_helper' require 'rails/generators' require 'generators/cachers/cacher/cacher_generator' require 'generators/cachers/install/install_generator' class GeneratorsTest < Rails::Generators::TestCase destination Rails.root.join('tmp') teardown do FileUtils.rm_rf destination_root end test 'cacher' do self.class.tests Cachers::Generators::CacherGenerator run_generator %w(user) assert_file 'app/cachers/user_cacher.rb' end test 'install' do self.class.tests Cachers::Generators::InstallGenerator run_generator assert_file 'config/redis.yml' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cachers-4.1.0.2 | test/generator_test.rb |
cachers-4.1.0.1 | test/generator_test.rb |
cachers-4.1.0.0 | test/generator_test.rb |