Sha256: 07ae7e597356fc5d8eeae3758d900764cbe2a967d8aad587e58d857468577939

Contents?: true

Size: 578 Bytes

Versions: 14

Compression:

Stored size: 578 Bytes

Contents

require 'spec_helper'

describe Taskinator::Executor do

  let(:definition) do
    Module.new() do
      def method; end
    end
  end

  subject { Taskinator::Executor.new(definition) }

  it "should mixin definition" do
    expect(subject).to be_a(definition)
  end

  it "should mixin definition for the instance only" do
    expect(Taskinator::Executor).to_not be_a(definition)
  end

  it "should assign definition" do
    expect(subject.definition).to eq(definition)
  end

  it "should contain definition methods" do
    expect(subject).to respond_to(:method)
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
taskinator-0.0.15 spec/taskinator/executor_spec.rb
taskinator-0.0.14 spec/taskinator/executor_spec.rb
taskinator-0.0.13 spec/taskinator/executor_spec.rb
taskinator-0.0.12 spec/taskinator/executor_spec.rb
taskinator-0.0.11 spec/taskinator/executor_spec.rb
taskinator-0.0.10 spec/taskinator/executor_spec.rb
taskinator-0.0.9 spec/taskinator/executor_spec.rb
taskinator-0.0.8 spec/taskinator/executor_spec.rb
taskinator-0.0.7 spec/taskinator/executor_spec.rb
taskinator-0.0.5 spec/taskinator/executor_spec.rb
taskinator-0.0.4 spec/taskinator/executor_spec.rb
taskinator-0.0.3 spec/taskinator/executor_spec.rb
taskinator-0.0.2 spec/taskinator/executor_spec.rb
taskinator-0.0.1 spec/taskinator/executor_spec.rb