Sha256: 54a214722ff37ee9e653aa221505c245dbbae72111d27212e60862110d2d7528

Contents?: true

Size: 350 Bytes

Versions: 17

Compression:

Stored size: 350 Bytes

Contents

require 'spec_helper'

shared_examples_for "a task" do |task_type|

  # NOTE: process and task must be defined by callee

  # let(:process) {}
  # let(:task) {}

  it { expect(task.process).to eq(process)  }
  it { expect(task.uuid).to_not be_nil }
  it { expect(task.to_s).to match(/#{task.uuid}/) }
  it { expect(task.options).to_not be_nil }

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
taskinator-0.2.0 spec/examples/task_examples.rb
taskinator-0.0.18 spec/examples/task_examples.rb
taskinator-0.0.17 spec/examples/task_examples.rb
taskinator-0.0.16 spec/examples/task_examples.rb
taskinator-0.0.15 spec/examples/task_examples.rb
taskinator-0.0.14 spec/examples/task_examples.rb
taskinator-0.0.13 spec/examples/task_examples.rb
taskinator-0.0.12 spec/examples/task_examples.rb
taskinator-0.0.11 spec/examples/task_examples.rb
taskinator-0.0.10 spec/examples/task_examples.rb
taskinator-0.0.9 spec/examples/task_examples.rb
taskinator-0.0.8 spec/examples/task_examples.rb
taskinator-0.0.7 spec/examples/task_examples.rb
taskinator-0.0.5 spec/examples/task_examples.rb
taskinator-0.0.4 spec/examples/task_examples.rb
taskinator-0.0.3 spec/examples/task_examples.rb
taskinator-0.0.2 spec/examples/task_examples.rb