Sha256: 92613f2d017437f175450ade4187e0d570cefec76b49ea3f2530251d3574c139

Contents?: true

Size: 580 Bytes

Versions: 1

Compression:

Stored size: 580 Bytes

Contents

describe ActivityNotification::ActsAsNotifier do
  let(:dummy_model_class) { Dummy::DummyBase }

  describe "as public class methods" do
    describe ".acts_as_notifier" do
      it "have not included Notifier before calling" do
        expect(dummy_model_class.respond_to?(:available_as_notifier?)).to be_falsey
      end

      it "includes Notifier" do
        dummy_model_class.acts_as_notifier
        expect(dummy_model_class.respond_to?(:available_as_notifier?)).to be_truthy
        expect(dummy_model_class.available_as_notifier?).to be_truthy
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activity_notification-0.0.10 spec/roles/acts_as_notifier_spec.rb