queue_classic_matchers 0.0.1 → 0.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8cfabef2f107163c77342e176369028419df0b9e
4
- data.tar.gz: 7c3e40864f608225424faa87aa95c55d5dc0df50
3
+ metadata.gz: 7bc11794609e2a668c07aaae652f1999c92751f2
4
+ data.tar.gz: d7f4b103b193b2963143890f713d4d6eb1308b88
5
5
  SHA512:
6
- metadata.gz: 68fcb9b92713b041b25859fc6ed13024023e5a55b9a0504d2098359faa0e66af21147c28e29aa005018dc8cbdc3951ce2dca4a01fc3068669e5f5e6ba7574173
7
- data.tar.gz: 7d3997f9b70c53a8d1c98ed5a1624b41960d1701ac74972e91d802a84b083ad4209ddfefee0757d636943601cc0ab7aa936e3358f62fdd7e1643075cc16f5408
6
+ metadata.gz: a2b6a0d9afeac34a96fa13d7cb3453d8dce910769413a9a09d9a219ab52eac140a186fe53f54d12393b41013be047ca2adaa62fee75a6d68cf648409d693b65c
7
+ data.tar.gz: 34ac86e89b51dd9e0d8856cc9af8b1cc0e0d55629cb7ab87e8e206c3061564777eb3bcdc236ce3d874a1447268cee33e4355ee6b358be25552c3c31400ee28bf
@@ -1,3 +1,3 @@
1
1
  module QueueClassicMatchers
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -127,3 +127,16 @@ RSpec::Matchers.define :have_scheduled do |*expected_args|
127
127
  "have scheduled arguments"
128
128
  end
129
129
  end
130
+
131
+ if defined?(QueueClassicPlus)
132
+ RSpec.shared_examples_for "a queueable class" do
133
+ subject { described_class }
134
+ its(:queue) { should be_a(::QC::Queue) }
135
+ it { should respond_to(:do) }
136
+ it { should respond_to(:perform) }
137
+
138
+ it "should be a valid queue name" do
139
+ subject.queue.name.should be_present
140
+ end
141
+ end
142
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: queue_classic_matchers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Mathieu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-08 00:00:00.000000000 Z
11
+ date: 2014-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler