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.
- data/lib/bumbleworks/task.rb +1 -1
- data/lib/bumbleworks/version.rb +1 -1
- data/spec/lib/bumbleworks/task_spec.rb +10 -3
- metadata +1 -1
data/lib/bumbleworks/task.rb
CHANGED
data/lib/bumbleworks/version.rb
CHANGED
@@ -8,8 +8,15 @@ describe Bumbleworks::Task do
|
|
8
8
|
Bumbleworks.start_worker!
|
9
9
|
end
|
10
10
|
|
11
|
-
|
12
|
-
|
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(:
|
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'
|