Sha256: 43bdada8b92c3a4f984d628fe6875f31a737b0a89b517195680ba8355bcf808d

Contents?: true

Size: 387 Bytes

Versions: 164

Compression:

Stored size: 387 Bytes

Contents

class TestObject < ActionSubscriber::Base
  exchange :events

  def created
  end
end

describe ActionSubscriber::Base do
  describe "inherited" do
    context "when a class has inherited from action subscriber base" do
      it "adds the class to the intherited classes collection" do
        expect(described_class.inherited_classes).to include(TestObject)
      end
    end
  end
end

Version data entries

164 entries across 164 versions & 1 rubygems

Version Path
action_subscriber-5.3.3-java spec/lib/action_subscriber/base_spec.rb
action_subscriber-5.3.3 spec/lib/action_subscriber/base_spec.rb
action_subscriber-5.3.2-java spec/lib/action_subscriber/base_spec.rb
action_subscriber-5.3.2 spec/lib/action_subscriber/base_spec.rb
action_subscriber-5.3.1-java spec/lib/action_subscriber/base_spec.rb
action_subscriber-5.3.1 spec/lib/action_subscriber/base_spec.rb
action_subscriber-5.3.1.pre-java spec/lib/action_subscriber/base_spec.rb
action_subscriber-5.3.1.pre spec/lib/action_subscriber/base_spec.rb
action_subscriber-5.3.0-java spec/lib/action_subscriber/base_spec.rb
action_subscriber-5.3.0 spec/lib/action_subscriber/base_spec.rb
action_subscriber-5.2.4-java spec/lib/action_subscriber/base_spec.rb
action_subscriber-5.2.4 spec/lib/action_subscriber/base_spec.rb
action_subscriber-5.2.3-java spec/lib/action_subscriber/base_spec.rb
action_subscriber-5.2.3 spec/lib/action_subscriber/base_spec.rb
action_subscriber-5.2.2-java spec/lib/action_subscriber/base_spec.rb
action_subscriber-5.2.2 spec/lib/action_subscriber/base_spec.rb
action_subscriber-5.2.1-java spec/lib/action_subscriber/base_spec.rb
action_subscriber-5.2.1 spec/lib/action_subscriber/base_spec.rb
action_subscriber-5.2.0-java spec/lib/action_subscriber/base_spec.rb
action_subscriber-5.2.0 spec/lib/action_subscriber/base_spec.rb