Skip to content

Commit 74eab82

Browse files
committed
Add ability to run specific rspec commands in example app
1 parent b5133d9 commit 74eab82

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Rakefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ end
9595
namespace :smoke do
9696
desc "create a new example app with generated specs and run them"
9797
task app: ["clobber:app", "generate:app", "generate:stuff", :smoke]
98+
99+
desc "run RSPEC_OPTS environment variable in the example app for local dev"
100+
task :rspec do
101+
in_example_app "LOCATION='../../example_app_generator/run_specs.rb' bin/rspec #{ENV.fetch("RSPEC_OPTS")}"
102+
end
98103
end
99104

100105
desc 'clobber generated files'

0 commit comments

Comments
 (0)