Class: Kender::Rspec
Instance Method Summary
collapse
Methods inherited from Command
all, all_names, commands, #execute, inherited, #name, #run
Instance Method Details
#available? ⇒ Boolean
4
5
6
7
8
|
# File 'lib/kender/commands/rspec.rb', line 4
def available?
return false if ENV['VALIDATE_PROJECT']
in_gemfile?("rspec") || in_gemfile?("rspec-rails")
end
|
#command ⇒ Object
10
11
12
13
14
15
16
|
# File 'lib/kender/commands/rspec.rb', line 10
def command
if defined?(ParallelTests)
'bundle exec rake parallel:spec'
else
'bundle exec rspec'
end
end
|