speedflow-plugin-test 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/speedflow/plugin/test/version.rb +1 -1
- data/lib/speedflow/plugin/test.rb +3 -1
- data/spec/speedflow/plugin/test_spec.rb +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af7f34d8488cb6f8ef2928fee4c835f8db165a69
|
4
|
+
data.tar.gz: ba26c28493065ae944d445152468a373d56859d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 343f651dd5739d431048ceea32f898ef97f44de72c9154df0ebecf927b9dfa1039cb0a4a983596d185c53a435e2ccca97ea57ae76791eacb086de161b35a45ca
|
7
|
+
data.tar.gz: e9201b6986e9a000ea998056f46b57aa8e66cbd121a0f34f92f9354f0b0277b9d5303d0c939e043b77f1dba2507900dd51b3742987a198a550763d843d309028
|
@@ -12,12 +12,14 @@ module Speedflow
|
|
12
12
|
#
|
13
13
|
# *args - Some arguments :)
|
14
14
|
#
|
15
|
-
# Returns
|
15
|
+
# Returns arguments.
|
16
16
|
def method_missing(*args)
|
17
17
|
action = args.first
|
18
18
|
arguments = args.last
|
19
19
|
|
20
20
|
puts "Load: #{action} with args: #{arguments}"
|
21
|
+
|
22
|
+
arguments
|
21
23
|
end
|
22
24
|
end
|
23
25
|
end
|
@@ -6,7 +6,9 @@ describe Speedflow::Plugin::Test do
|
|
6
6
|
end
|
7
7
|
|
8
8
|
it 'has a missing method catcher' do
|
9
|
-
expect { Speedflow::Plugin::Test.foo(bar: 'baz') }
|
10
|
-
output("Load: foo with args: {:bar=>\"baz\"}\n").to_stdout
|
9
|
+
expect { Speedflow::Plugin::Test.foo(bar: 'baz') }
|
10
|
+
.to output("Load: foo with args: {:bar=>\"baz\"}\n").to_stdout
|
11
|
+
expect(Speedflow::Plugin::Test.foo(bar: 'baz'))
|
12
|
+
.to include(bar: 'baz')
|
11
13
|
end
|
12
14
|
end
|