Class: Thincloud::TestGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/thincloud/test_generator.rb

Instance Method Summary collapse

Instance Method Details

#testObject



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/generators/thincloud/test_generator.rb', line 13

def test
  remove_test_unit

  setup_minitest_rails

  directory "support", "test/support"

  inject_into_file "config/application.rb", before: "if defined?(Bundler)" do
    <<-EOS
# initialize thincloud-test-rails
require "thincloud/test/rails/railtie"\n\n
    EOS
  end

  say_status "", ""
  say_status "success", "thincloud-test-rails has finished."
end

#thincloud_test_initObject



8
9
10
# File 'lib/generators/thincloud/test_generator.rb', line 8

def thincloud_test_init
  ::Thincloud::Test::TestGenerator.new.testify!(minitest: false)
end