Skip to content

Commit eb1c146

Browse files
author
Sam Phippen
committed
Conditional check on RSpec rails defining
1 parent 3bc329d commit eb1c146

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
require "spec_helper"
1+
if defined?(RSpec::Rails::SystemExampleGroup)
2+
require "spec_helper"
23

3-
module RSpec::Rails
4-
describe SystemExampleGroup do
5-
it_behaves_like "an rspec-rails example group mixin", :system,
6-
'./spec/system/', '.\\spec\\system\\'
4+
module RSpec::Rails
5+
describe SystemExampleGroup do
6+
it_behaves_like "an rspec-rails example group mixin", :system,
7+
'./spec/system/', '.\\spec\\system\\'
8+
end
79
end
810
end

0 commit comments

Comments
 (0)