Sha256: 31a46271a13f1bad826259e8e20d8db9e14c9394d92bdfb0f4aea23ed2b01206

Contents?: true

Size: 432 Bytes

Versions: 2

Compression:

Stored size: 432 Bytes

Contents

require_relative '../pact_helper'
require 'user_app/message_processor'

module UserApp
  describe MessageProcessor, pact: true do
    let(:message) do
      Pact::Messages.get_message_sample('Message Provider', 'Message Consumer', 'User subscribed')
    end

    describe '.full_name' do
      it 'joins first name and last name' do
        expect(described_class.full_name(message)).to eq('John Smith')
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pact-messages-0.1.1 example/user-app/spec/service_consumers/message_processor_spec.rb
pact-messages-0.1.0 example/user-app/spec/service_consumers/message_processor_spec.rb