Sha256: a8189c5e4c2256e2bf3ce1171287eec376bd5c7e0efc9b434673271b0d506b93

Contents?: true

Size: 708 Bytes

Versions: 10

Compression:

Stored size: 708 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'
require './lib/fusuma/plugin/events/event'

module Fusuma
  module Plugin
    module Events
      RSpec.describe Event do
        let(:event) { Event.new(**args) }
        let(:args) { { tag: 'text', record: 'dummy_text' } }

        class DummyRecord < Records::Record
        end

        describe '#record' do
          context 'with text' do
            it { expect(event.record).to be_a Records::Record }
          end

          context 'with Record' do
            let(:args) { { tag: 'dummy_record', record: DummyRecord.new } }

            it { expect(event.record).to be_a Records::Record }
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
fusuma-2.4.1 spec/lib/plugin/events/event_spec.rb
fusuma-2.4.0 spec/lib/plugin/events/event_spec.rb
fusuma-2.3.0 spec/lib/plugin/events/event_spec.rb
fusuma-2.2.0 spec/lib/plugin/events/event_spec.rb
fusuma-2.1.0 spec/lib/plugin/events/event_spec.rb
fusuma-2.0.5 spec/lib/plugin/events/event_spec.rb
fusuma-2.0.4 spec/lib/plugin/events/event_spec.rb
fusuma-2.0.3 spec/lib/plugin/events/event_spec.rb
fusuma-2.0.2 spec/lib/plugin/events/event_spec.rb
fusuma-2.0.1 spec/lib/plugin/events/event_spec.rb