File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change
1
+ ## Not released
2
+
3
+ * Add ` rails test ` command.
4
+
1
5
## 1.3.3
2
6
3
7
* Fix yet another problem with loading spring which seems to affect
Original file line number Diff line number Diff line change 3
3
module Spring
4
4
module Client
5
5
class Rails < Command
6
- COMMANDS = Set . new %w( console runner generate destroy )
6
+ COMMANDS = Set . new %w( console runner generate destroy test )
7
7
8
8
ALIASES = {
9
9
"c" => "console" ,
10
10
"r" => "runner" ,
11
11
"g" => "generate" ,
12
- "d" => "destroy"
12
+ "d" => "destroy" ,
13
+ "t" => "test"
13
14
}
14
15
15
16
def self . description
Original file line number Diff line number Diff line change @@ -83,9 +83,16 @@ def extract_environment(args)
83
83
end
84
84
end
85
85
86
+ class RailsTest < Rails
87
+ def command_name
88
+ "test"
89
+ end
90
+ end
91
+
86
92
Spring . register_command "rails_console" , RailsConsole . new
87
93
Spring . register_command "rails_generate" , RailsGenerate . new
88
94
Spring . register_command "rails_destroy" , RailsDestroy . new
89
95
Spring . register_command "rails_runner" , RailsRunner . new
96
+ Spring . register_command "rails_test" , RailsTest . new
90
97
end
91
98
end
You can’t perform that action at this time.
0 commit comments