aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/fixtures/lib/plugin_builders/spec_builder.rb
blob: 2721429599d2744630ab7f66f55569cd99357619 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class PluginBuilder < Rails::PluginBuilder
  def test
    create_file "spec/spec_helper.rb"
    append_file "Rakefile", <<-EOF
# spec tasks in rakefile

task default: :spec
    EOF
  end

  def generate_test_dummy
    dummy_path("spec/dummy")
    super
  end

  def skip_test_unit?
    true
  end
end