Skip to content

Commit

Permalink
Helpers to run routes in example apps for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Sep 5, 2024
1 parent ccc5b64 commit c1ccbeb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ namespace :smoke do
in_example_app args.cmd.to_s
end

desc "run rake routes in example app"
task :routes do
in_example_app "bin/rails routes"
end

desc "run RSPEC_OPTS environment variable in the example app for local dev"
task :rspec do
in_example_app "LOCATION='../../example_app_generator/run_specs.rb' bin/rspec #{ENV.fetch("RSPEC_OPTS")}"
Expand Down Expand Up @@ -144,6 +149,11 @@ namespace :no_active_record do
"no_active_record:smoke",
]

desc "run rake routes in example app"
task :routes do
in_example_app "bin/rails routes", app_dir: example_app_dir
end

desc "run RSPEC_OPTS environment variable in the example app for local dev"
task :rspec do
in_example_app "LOCATION='../../example_app_generator/run_specs.rb' bin/rspec #{ENV.fetch("RSPEC_OPTS")}", app_dir: example_app_dir
Expand Down

0 comments on commit c1ccbeb

Please sign in to comment.