speedflow-plugin-test 0.1.9 → 0.1.10

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: af47c4b6e6d648c8381d15fc2ea849a866a9a540
4
- data.tar.gz: e4b95c362a603e2e2c7512fc65765d84e8f3b3cb
3
+ metadata.gz: 1a599ae9b9d442722441a810dfda275d59b74b34
4
+ data.tar.gz: ce25078d369950dfa9290a01d98e6d6af4a52922
5
5
  SHA512:
6
- metadata.gz: f60eea503370e107f5239f438694d5613ed8b1dd19ef6def4dd7f049d79d2b9aaa8d67e4b8f161212e76b996c142bbfe2cc35ac8ecf929e6b1b36ac71885efe6
7
- data.tar.gz: 9cf7e954337acfb009d686fdbd3099c74b031a6272e18acf51a07a130f2a1cd7e9f23f42fff0fdd5dba114db941c9967e1a137e16345e77fcaea5f7ac6bbb8f9
6
+ metadata.gz: dd9df8491ce7c6e1db3d753c7a242aacaae46b62ad7b3b7a7de245423b3a44789adf61de5b8b2661bd396ab0bead1b9cbc774be511c8394e3b0f78af00c604f1
7
+ data.tar.gz: 6c11febb9252738fae203f193c5ae4206d7e7d1f09fc89de30d14537d592ab4fc91123b82ef23e8a58b9d2052303432830abaaa887ddbad6415e4d41139d21e8
@@ -17,6 +17,10 @@ module Speedflow
17
17
  action = args.first
18
18
  arguments = args.last
19
19
 
20
+ if action.to_s == 'no_action'
21
+ raise NoMethodError
22
+ end
23
+
20
24
  puts "Load: #{action} with args: #{arguments}"
21
25
 
22
26
  arguments
@@ -1,7 +1,7 @@
1
1
  module Speedflow
2
2
  module Plugin
3
3
  module Test
4
- VERSION = '0.1.9'.freeze
4
+ VERSION = '0.1.10'.freeze
5
5
  end
6
6
  end
7
7
  end
@@ -5,10 +5,12 @@ describe Speedflow::Plugin::Test do
5
5
  expect(Speedflow::Plugin::Test::VERSION).not_to be nil
6
6
  end
7
7
 
8
- it 'has a missing method catcher' do
8
+ it '.method_missing' do
9
9
  expect { Speedflow::Plugin::Test.foo(bar: 'baz') }
10
10
  .to output("Load: foo with args: {:bar=>\"baz\"}\n").to_stdout
11
11
  expect(Speedflow::Plugin::Test.foo(bar: 'baz'))
12
12
  .to include(bar: 'baz')
13
+ expect { Speedflow::Plugin::Test.no_action(bar: 'baz') }
14
+ .to raise_error(NoMethodError)
13
15
  end
14
16
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: speedflow-plugin-test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Breux
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-19 00:00:00.000000000 Z
11
+ date: 2016-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler