wires-test 0.0.3 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/wires/test.rb +3 -5
  3. metadata +15 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aed1642b4dd2e78b44c96b64e7eac9dfb518053b
4
- data.tar.gz: 946eefe066aa03ef735492d40a4b74eb8b123913
3
+ metadata.gz: 1718698a58e0c296d5ea90c17e985e2b11e29066
4
+ data.tar.gz: 91503847e44ceaf0515743ca5437961db0618778
5
5
  SHA512:
6
- metadata.gz: 41977a054aaf76f609cdcd9b7b17b0395bc9dfa18ea6b4b382333dff97911af9c980639052fa17f8e3752c48f82cb93c319de424e6d27e684cc241c4e9334191
7
- data.tar.gz: cc721af1320e8786d36a76414b03b795a8891271d2ac136733801d67281714adcd9bae1647c4242e6166c2fc652ca0d52d92127ee30fb76a037de36f3b14f5bb
6
+ metadata.gz: 50f5eda520268beb59e8b69c3609d500b16ad9243084eae51350ba72e23c8ab58c6a240ad2d93595954d5f10d181aee01260b9269480ff15ff2f4d89d3cdbc7a
7
+ data.tar.gz: bcebcce1914b6af57772a2dd20660587b57e81698a78d12b6050aa205cfa35b499c26ddd75cea202e9a480f1f2827b53ce8351ee1c044e4d8daa695efc74c162
data/lib/wires/test.rb CHANGED
@@ -11,17 +11,15 @@ module Wires
11
11
  def before_setup
12
12
  @received_wires_events = []
13
13
  Channel.before_fire { |e,c| @received_wires_events << [e,c] }
14
- Hub.run
15
14
  super
16
15
  end
17
16
 
18
17
  def after_teardown
19
18
  super
20
- Hub.kill
21
19
  clear_fired
22
20
  end
23
21
 
24
- def fired?(event,channel='*', clear:false, exclusive:false, plurality:nil,
22
+ def fired?(event,channel=self, clear:false, exclusive:false, plurality:nil,
25
23
  exact_event:false, exact_channel:false, &block)
26
24
  key_event = Event.new_from event
27
25
  key_chan = Channel.new channel
@@ -42,13 +40,13 @@ module Wires
42
40
  true
43
41
  end
44
42
 
45
- def assert_fired(event, channel='*', assert_string=nil, **options, &block)
43
+ def assert_fired(event, channel=self, assert_string=nil, **options, &block)
46
44
  assert fired?(event, channel, **options, &block), assert_string||\
47
45
  "Expected an event matching #{event.inspect}"\
48
46
  " to have been fired on channel #{channel.inspect}."
49
47
  end
50
48
 
51
- def refute_fired(event, channel='*', assert_string=nil, **options, &block)
49
+ def refute_fired(event, channel=self, assert_string=nil, **options, &block)
52
50
  refute fired?(event, channel, **options, &block), assert_string||\
53
51
  "Expected no events matching #{event.inspect}"\
54
52
  " to have been fired on channel #{channel.inspect}."
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wires-test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe McIlvain
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-18 00:00:00.000000000 Z
11
+ date: 2013-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: wires
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 0.4.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 0.4.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: minitest
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: 4.3.2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 4.3.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: jemc-reporter
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  description: Testing convenience gem for the wires framework.
@@ -84,17 +84,17 @@ require_paths:
84
84
  - lib
85
85
  required_ruby_version: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  requirements:
92
- - - '>='
92
+ - - ">="
93
93
  - !ruby/object:Gem::Version
94
94
  version: '0'
95
95
  requirements: []
96
96
  rubyforge_project:
97
- rubygems_version: 2.0.3
97
+ rubygems_version: 2.1.5
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: wires-test