Skip to content

Commit 64f0074

Browse files
committed
Add ability to run specific rspec commands in example no ar app
1 parent 81992e1 commit 64f0074

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
@@ -134,6 +134,11 @@ namespace :no_active_record do
134134
"no_active_record:generate:stuff",
135135
"no_active_record:smoke",
136136
]
137+
138+
desc "run RSPEC_OPTS environment variable in the example app for local dev"
139+
task :rspec do
140+
in_example_app "LOCATION='../../example_app_generator/run_specs.rb' bin/rspec #{ENV.fetch("RSPEC_OPTS")}", app_dir: example_app_dir
141+
end
137142
end
138143

139144
desc "remove the old non-ActiveRecord app"

0 commit comments

Comments
 (0)