Sha256: 6496185856eae194b7aef6623dd68512a9a663711a56408f2650e99259dc7cd5
Contents?: true
Size: 1.63 KB
Versions: 2
Compression:
Stored size: 1.63 KB
Contents
RSpec.describe Celluloid::Supervision::Container::Behavior do class WellBehaved include Celluloid end let(:typeless) do { as: :testing_behaviors, supervises: [ { as: :testing_behaved_instances, type: WellBehaved } ] } end let(:normal) do { as: :testing_behaviors, supervises: [ { as: :testing_behaved_instances, type: WellBehaved } ] } end let(:mutant) do { as: :testing_behaviors, supervise: [], supervises: [ { as: :testing_behaved_instances, type: WellBehaved } ] } end subject { Celluloid::Supervision::Configuration.new } it("detects default type if not provided, and provides it") do end it("prejudicially rejects mutants") do expect { subject.define(mutant) }.to raise_error(Celluloid::Supervision::Container::Behavior::Error::Mutant) end context("allows definition of new plugins") do class TestPlugin include Celluloid::Supervision::Container::Behavior identifier! :identifying_parameter, :aliased_identifier end xit("and adds a plugin parameter") do expect(Celluloid::Supervision::Configuration.parameters(:plugins)).to include(:identifying_parameter) end xit("and adds aliased parameters") do expect(Celluloid::Supervision::Configuration.aliases.keys?).to include(:aliased_identifier) end end context("allows inclusion by Module") do xit("with automatic addition of injections") do end xit("with correct handling of injections made") do end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
celluloid-0.18.0 | spec/celluloid/supervision/behavior_spec.rb |
celluloid-0.18.0.pre2 | spec/celluloid/supervision/behavior_spec.rb |