Sha256: cde101e3b800a7a41ffcbed146e90ead7559827037e91b63300d350db782e493
Contents?: true
Size: 648 Bytes
Versions: 37
Compression:
Stored size: 648 Bytes
Contents
require 'test_helper' require "generators/push_type/install/install_generator" module PushType class InstallGeneratorTest < Rails::Generators::TestCase tests InstallGenerator destination Rails.root.join('tmp/generators') before :all do prepare_destination FileUtils.mkdir Rails.root.join('tmp/generators/config') FileUtils.cp Rails.root.join('config/routes.rb'), Rails.root.join('tmp/generators/config/') run_generator ['--no-migrate'] end it { assert_file 'config/initializers/push_type.rb', %r{PushType.setup do |config|} } it { assert_file 'config/routes.rb', %r{mount_push_type} } end end
Version data entries
37 entries across 37 versions & 1 rubygems