amqp-spec 0.2.3 → 0.2.4

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.
Files changed (4) hide show
  1. data/HISTORY +4 -0
  2. data/README.rdoc +9 -5
  3. data/VERSION +1 -1
  4. metadata +4 -4
data/HISTORY CHANGED
@@ -65,3 +65,7 @@
65
65
  == 0.2.3 / 2010-10-31
66
66
 
67
67
  * Documentation cleaned up
68
+
69
+ == 0.2.4 / 2010-11-01
70
+
71
+ * Release
data/README.rdoc CHANGED
@@ -40,14 +40,15 @@ different example groups can have separate defaults. Please note that this is di
40
40
  default_timeout is effectively a global setting.
41
41
 
42
42
  require "amqp-spec/rspec"
43
+
43
44
  describe AMQP do
44
45
  include AMQP::SpecHelper
45
46
 
46
47
  default_options :host => 'my.amqp.broker.org', :port => '21118'
47
- # Can be used to set default options for all your amqp{} event loops
48
+ # Can be used to set default options for your amqp{} event loops
48
49
 
49
50
  default_timeout 1
50
- # Can be used to set default :spec_timeout for all your amqp-based specs
51
+ # Can be used to set default :spec_timeout for your evented specs
51
52
 
52
53
  before(:each) do
53
54
  puts EM.reactor_running?
@@ -91,10 +92,12 @@ to setup/teardown using these hooks will be lost as each example will run in a s
91
92
  run setup/teardown hooks inside the EM loop, you'll need to use before_amqp{} and after_amqp{} hooks that run
92
93
  inside the EM loop but before/after AMQP loop (these hooks are currently not implemented)
93
94
 
94
- require "amqp-spec/rspec"
95
95
  describe AMQP do
96
96
  include AMQP::Spec
97
97
 
98
+ default_options :host => 'my.amqp.broker.org', :port => '21118'
99
+ default_timeout 1
100
+
98
101
  it "requires a call to #done in every example" do
99
102
  1.should == 1
100
103
  done
@@ -123,7 +126,6 @@ Finally, you can include AMQP::EMSpec in your describe block. This will run all
123
126
  inside em block instead of amqp. before{} and after{} hooks should be finished with 'done', same as
124
127
  when including AMQP::Spec, and same caution about using them applies.
125
128
 
126
- require "amqp-spec/rspec"
127
129
  describe AMQP do
128
130
  include AMQP::EMSpec
129
131
 
@@ -132,9 +134,11 @@ when including AMQP::Spec, and same caution about using them applies.
132
134
  done
133
135
  end
134
136
 
135
- it "runs test code in an amqp block automatically" do
137
+ it "runs test code in an em block, instead of amqp block" do
136
138
  start = Time.now
137
139
 
140
+ AMQP.conn.should be_nil
141
+
138
142
  EM.add_timer(0.5){
139
143
  (Time.now-start).should be_close( 0.5, 0.1 )
140
144
  done
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.3
1
+ 0.2.4
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amqp-spec
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 3
10
- version: 0.2.3
9
+ - 4
10
+ version: 0.2.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Arvicco
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-31 00:00:00 +04:00
18
+ date: 2010-11-01 00:00:00 +03:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency