Sha256: 7388d132a08739516d04cb9522b5811994250b88c4e931d2a7dd90d00bcaff2d
Contents?: true
Size: 1004 Bytes
Versions: 14
Compression:
Stored size: 1004 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 context "with no options" do it "returns hash of specified options" do expect(dummy_model_class.acts_as_notifier).to eq({}) end end end describe ".available_notifier_options" do it "returns list of available options in acts_as_group" do expect(dummy_model_class.available_notifier_options) .to eq([:printable_notifier_name, :printable_name]) end end end end
Version data entries
14 entries across 14 versions & 1 rubygems