Sha256: 4728f33b939d17b5513b1d342377be2a9ff496eff9e640690fc616350458c070

Contents?: true

Size: 552 Bytes

Versions: 8

Compression:

Stored size: 552 Bytes

Contents

# frozen_string_literal: true

require_relative "../../spec_helper"

require_relative "../../../lib/ultravisor/child"
require_relative "../../../lib/ultravisor/error"

describe Ultravisor::Child do
  let(:child) { Ultravisor::Child.new(**args) }
  let(:mock_class) { Class.new.tap { |k| k.class_eval { def run; end } } }

  describe "#id" do
    context "with minimal arguments" do
      let(:args) { { id: :bob, klass: mock_class, method: :run } }

      it "returns the child's ID" do
        expect(child.id).to eq(:bob)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
service_skeleton-2.2.0 ultravisor/spec/ultravisor/child/id_spec.rb
service_skeleton-2.1.0 ultravisor/spec/ultravisor/child/id_spec.rb
service_skeleton-1.0.5 ultravisor/spec/ultravisor/child/id_spec.rb
service_skeleton-2.0.2 ultravisor/spec/ultravisor/child/id_spec.rb
service_skeleton-2.0.1 ultravisor/spec/ultravisor/child/id_spec.rb
service_skeleton-2.0.0 ultravisor/spec/ultravisor/child/id_spec.rb
service_skeleton-1.0.4 ultravisor/spec/ultravisor/child/id_spec.rb
service_skeleton-0.0.0.1.ENOTAG ultravisor/spec/ultravisor/child/id_spec.rb