Read about our upcoming Code of Conduct on this issue

Commit 22aebaa0 authored by Robert Speicher's avatar Robert Speicher
Browse files

Expand QA spec file paths to allow running bin/qa from anywhere

parent 07035f9038c7
......@@ -22,7 +22,12 @@ def perform(address, *files)
Specs::Runner.perform do |specs|
specs.tty = true
specs.tags = self.class.focus
specs.files = files.any? ? files : 'qa/specs/features'
specs.files =
if files.any?
files
else
File.expand_path('../../specs/features', __dir__)
end
end
end
end
......
......@@ -8,7 +8,7 @@ class Runner < Scenario::Template
def initialize
@tty = false
@tags = []
@files = ['qa/specs/features']
@files = [File.expand_path('./features', __dir__)]
end
def perform
......
......@@ -29,7 +29,8 @@
it 'should call runner with default arguments' do
subject.perform("test")
expect(runner).to have_received(:files=).with('qa/specs/features')
expect(runner).to have_received(:files=)
.with(File.expand_path('../../../qa/specs/features', __dir__))
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment