Sha256: 57f835867fd8bcc9cd6d20ffae21ec68924ab14ada9e23e5b03172a90d81c616

Contents?: true

Size: 550 Bytes

Versions: 18

Compression:

Stored size: 550 Bytes

Contents

RSpec.describe Mutant::Actor::Message do

  let(:type)    { double('Type')    }
  let(:payload) { double('Payload') }

  describe '.new' do
    subject { described_class.new(*arguments) }

    context 'with one argument' do
      let(:arguments) { [type] }

      its(:type)    { should be(type) }
      its(:payload) { should be(Mutant::Actor::Undefined) }
    end

    context 'with two arguments' do
      let(:arguments) { [type, payload] }

      its(:type)    { should be(type)    }
      its(:payload) { should be(payload) }
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
mutant-0.8.8 spec/unit/mutant/actor/message_spec.rb
mutant-0.8.7 spec/unit/mutant/actor/message_spec.rb
mutant-0.8.6 spec/unit/mutant/actor/message_spec.rb
mutant-0.8.5 spec/unit/mutant/actor/message_spec.rb
mutant-0.8.4 spec/unit/mutant/actor/message_spec.rb
mutant-0.8.3 spec/unit/mutant/actor/message_spec.rb
mutant-0.8.2 spec/unit/mutant/actor/message_spec.rb
mutant-0.8.1 spec/unit/mutant/actor/message_spec.rb
mutant-0.8.0 spec/unit/mutant/actor/message_spec.rb
mutant-0.7.9 spec/unit/mutant/actor/message_spec.rb
mutant-0.7.8 spec/unit/mutant/actor/message_spec.rb
mutant-0.7.7 spec/unit/mutant/actor/message_spec.rb
mutant-0.7.6 spec/unit/mutant/actor/message_spec.rb
mutant-0.7.5 spec/unit/mutant/actor/message_spec.rb
mutant-0.7.4 spec/unit/mutant/actor/message_spec.rb
mutant-0.7.3 spec/unit/mutant/actor/message_spec.rb
mutant-0.7.2 spec/unit/mutant/actor/message_spec.rb
mutant-0.7.1 spec/unit/mutant/actor/message_spec.rb