Sha256: b3cb9aa692cdc000567539061b4725443f4ff258af3c43a359f5d72d981dbf4c
Contents?: true
Size: 981 Bytes
Versions: 14
Compression:
Stored size: 981 Bytes
Contents
describe ActivityNotification::ActsAsGroup do let(:dummy_model_class) { Dummy::DummyBase } describe "as public class methods" do describe ".acts_as_group" do it "have not included Group before calling" do expect(dummy_model_class.respond_to?(:available_as_group?)).to be_falsey end it "includes Group" do dummy_model_class.acts_as_group expect(dummy_model_class.respond_to?(:available_as_group?)).to be_truthy expect(dummy_model_class.available_as_group?).to be_truthy end context "with no options" do it "returns hash of specified options" do expect(dummy_model_class.acts_as_group).to eq({}) end end end describe ".available_group_options" do it "returns list of available options in acts_as_group" do expect(dummy_model_class.available_group_options) .to eq([:printable_notification_group_name, :printable_name]) end end end end
Version data entries
14 entries across 14 versions & 1 rubygems