Sha256: 74353f7d6edef61169d136ba3c1397771d130b36438df96d5bca75ef836bea96
Contents?: true
Size: 1.26 KB
Versions: 21
Compression:
Stored size: 1.26 KB
Contents
require "test_helper" require "generators/lightrails/install_generator" module Lightrails class InstallGeneratorTest < ::Rails::Generators::TestCase tests Lightrails::Generators::InstallGenerator destination File.expand_path('../../tmp', __FILE__) setup :prepare_destination teardown { rm_rf(destination_root) } test "generates initializer for lightrails" do run_generator assert_file "config/initializers/lightrails.rb" end test "generates application facade" do run_generator assert_file "app/facades/application_facade.rb" end test "generates application interactor" do run_generator assert_file "app/interactors/application_interactor.rb" end test "generates application representer" do run_generator assert_file "app/representers/application_representer.rb" end test "generates directory for facade concerns" do run_generator assert_directory "app/facades/concerns" end test "generates directory for interactor concerns" do run_generator assert_directory "app/interactors/concerns" end test "generates directory for representers concerns" do run_generator assert_directory "app/representers/concerns" end end end
Version data entries
21 entries across 21 versions & 1 rubygems
Version | Path |
---|---|
lightrails-0.0.10 | test/lightrails/install_generator_test.rb |