Flockingbird/roost

View on GitHub
test/commands/application_command_test.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

require 'test_helper'

##
# Test the top level command
class ApplicationCommandTest < Minitest::Spec
  describe 'with aggregate_id' do
    let(:params) { { aggregate_id: SecureRandom.uuid } }

    it 'is valid' do
      assert(subject.validate)
    end
  end

  describe 'without aggregate_id' do
  end

  private

  def subject
    @subject ||= Commands::ApplicationCommand.new(params)
  end
end