File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ namespace :no_active_record do
188
188
189
189
desc "generate a bunch of stuff with generators"
190
190
task :stuff do
191
- in_example_app "bin/rake #{ rails_template_command } LOCATION='../../example_app_generator/generate_stuff.rb'" , app_dir : example_app_dir
191
+ in_example_app "bin/rake #{ rails_template_command } LOCATION='../../example_app_generator/generate_stuff.rb' __RSPEC_NO_AR=true " , app_dir : example_app_dir
192
192
end
193
193
end
194
194
end
Original file line number Diff line number Diff line change @@ -57,10 +57,10 @@ def skip_active_record?
57
57
end
58
58
59
59
def self . environment_hooks
60
- if defined? ( ActiveRecord )
61
- AR
62
- else
60
+ if ENV [ '__RSPEC_NO_AR' ]
63
61
NoAR
62
+ else
63
+ AR
64
64
end
65
65
end
66
66
end
You can’t perform that action at this time.
0 commit comments