-
Notifications
You must be signed in to change notification settings - Fork 21.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create_dummy_app method that allows to easily create dummy applicatio…
…n from template
- Loading branch information
Showing
6 changed files
with
51 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
create_dummy_app("spec/dummy") |
14 changes: 10 additions & 4 deletions
14
railties/test/fixtures/lib/plugin_builders/spec_builder.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,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 test_path | ||
"spec" | ||
def generate_test_dummy | ||
dummy_path("spec/dummy") | ||
super | ||
end | ||
|
||
def rakefile_test_tasks | ||
"# spec tasks in rakefile" | ||
def skip_test_unit? | ||
true | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters