Skip to content

Commit 865de32

Browse files
committed
Add more commands to Matrixeval::Ruby::COMMANDS
1 parent b7ef73e commit 865de32

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

lib/matrixeval/ruby/command_line.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
module Matrixeval
44
module Ruby
5-
COMMANDS = ['rake', 'rspec', 'bundle', 'bash']
5+
COMMANDS = [
6+
'ruby', 'rake', 'rails', 'rspec', 'bundle',
7+
'bin/rake', 'bin/rails', 'bin/rspec', 'bin/test',
8+
'bash', 'dash', 'sh', 'zsh'
9+
]
610

711
class CommandLine
812

test/matrixeval/ruby/command_line_test.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ def setup
88
Matrixeval::Ruby::Config::YAML.stubs(:yaml).returns({"matrix" => {}})
99
end
1010

11+
def test_commands
12+
commands = [
13+
'ruby', 'rake', 'rails', 'rspec', 'bundle',
14+
'bin/rake', 'bin/rails', 'bin/rspec', 'bin/test',
15+
'bash', 'dash', 'sh', 'zsh'
16+
]
17+
assert_equal commands, Matrixeval::Ruby::COMMANDS
18+
end
19+
1120
def test_init?
1221
command = Matrixeval::Ruby::CommandLine.new(["init"])
1322
assert command.init?

0 commit comments

Comments
 (0)