File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -87,5 +87,33 @@ class RunnerClientTest < ActiveSupport::TestCase
87
87
FileUtils . mv ( "test/dummy/config/application.rb.bak" , "test/dummy/config/application.rb" )
88
88
end
89
89
end
90
+
91
+ class NullClientTest < ActiveSupport ::TestCase
92
+ setup { @client = NullClient . new }
93
+
94
+ test "#shutdown is a no-op" do
95
+ assert_nothing_raised { @client . shutdown }
96
+ end
97
+
98
+ test "#stopped? is always true" do
99
+ assert_predicate @client , :stopped?
100
+ end
101
+
102
+ test "#rails_root is just the current working directory" do
103
+ assert_equal Dir . pwd , @client . rails_root
104
+ end
105
+
106
+ test "#send_message is a no-op" do
107
+ assert_nothing_raised { @client . send ( :send_message , "request" , nil ) }
108
+ end
109
+
110
+ test "#send_notification is a no-op" do
111
+ assert_nothing_raised { @client . send ( :send_notification , "request" , nil ) }
112
+ end
113
+
114
+ test "#read_response is a no-op" do
115
+ assert_nothing_raised { @client . send ( :read_response ) }
116
+ end
117
+ end
90
118
end
91
119
end
You can’t perform that action at this time.
0 commit comments