bumbleworks 0.0.26 → 0.0.27

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.
@@ -13,7 +13,7 @@ module Bumbleworks
13
13
 
14
14
  extend Forwardable
15
15
  delegate [:sid, :fei, :fields, :params, :participant_name, :wfid, :wf_name] => :@workitem
16
- attr_reader :nickname
16
+ attr_reader :nickname, :workitem
17
17
  alias_method :id, :sid
18
18
 
19
19
  class << self
@@ -1,3 +1,3 @@
1
1
  module Bumbleworks
2
- VERSION = "0.0.26"
2
+ VERSION = "0.0.27"
3
3
  end
@@ -8,8 +8,15 @@ describe Bumbleworks::Task do
8
8
  Bumbleworks.start_worker!
9
9
  end
10
10
 
11
- it 'includes WorkitemEntityStorage' do
12
- described_class.included_modules.should include(Bumbleworks::WorkitemEntityStorage)
11
+ describe 'entity storage' do
12
+ it 'includes WorkitemEntityStorage' do
13
+ described_class.included_modules.should include(Bumbleworks::WorkitemEntityStorage)
14
+ end
15
+
16
+ it 'has a workitem method that returns workitem' do
17
+ task = described_class.new(workflow_item)
18
+ task.workitem.should == workflow_item
19
+ end
13
20
  end
14
21
 
15
22
  describe '#not_completable_error_message' do
@@ -327,7 +334,7 @@ describe Bumbleworks::Task do
327
334
  dog :task => 'nap'
328
335
  end
329
336
  Bumbleworks.launch!('dog-lifecycle')
330
- Bumbleworks.dashboard.wait_for(:dog)
337
+ Bumbleworks.dashboard.wait_for(:cat)
331
338
  described_class.for_claimant('radish').should be_empty
332
339
  described_class.all.each do |t|
333
340
  t.claim('radish') unless t.nickname == 'pet_dog'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bumbleworks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.26
4
+ version: 0.0.27
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: