speedflow-plugin-test 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38439d4b7e4e40a20bbf3dfdfdf2081f14d6bc61
|
4
|
+
data.tar.gz: 6bcfe81d7f4edcc89a6f2642f58d9cd85c837023
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af8ffe4fbf5bf86edf3548c2863f7e1343a13e7df985ee327e21164a0cc16545bcb2f469fcbeab1f1d9e268ade45f98b822e9a9b29d375d0c372e4dd078ad5ea
|
7
|
+
data.tar.gz: 0ffd464644995588cfa4b3c13710df3de22ce089e102460db7060f620aaa74f38ed4a44271bd35dcc68a0f610544db770d5ea2e9afbcbff66dee26e4f9058a8c
|
@@ -25,10 +25,10 @@ module Speedflow
|
|
25
25
|
@prompt = prompt
|
26
26
|
end
|
27
27
|
|
28
|
-
# Public:
|
28
|
+
# Public: Action to test
|
29
29
|
#
|
30
30
|
# Returns Hash of arguments.
|
31
|
-
def
|
31
|
+
def action_test
|
32
32
|
@prompt.warn ' - Pong: test'
|
33
33
|
@prompt.warn " Config: #{@config.all_config}"
|
34
34
|
@prompt.warn " Input: #{@config.all_input}"
|
@@ -3,16 +3,14 @@ require 'spec_helper'
|
|
3
3
|
describe Speedflow::Plugin::Test::Plugin do
|
4
4
|
let(:plugin) { ::Speedflow::Plugin::Test::Plugin.new(double, double) }
|
5
5
|
|
6
|
-
it '.
|
6
|
+
it '.action_test' do
|
7
7
|
allow(plugin.prompt).to receive(:warn).with(' - Pong: test')
|
8
8
|
allow(plugin.config).to receive(:all_config)
|
9
9
|
allow(plugin.prompt).to receive(:warn)
|
10
10
|
allow(plugin.config).to receive(:all_input).and_return(hello: 'world')
|
11
11
|
allow(plugin.prompt).to receive(:warn)
|
12
12
|
|
13
|
-
plugin.
|
14
|
-
|
15
|
-
expect(plugin.test)
|
13
|
+
expect(plugin.action_test)
|
16
14
|
.to eq(hello: 'world')
|
17
15
|
end
|
18
16
|
end
|