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