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