Sha256: 55b8b9473d89ad3da5ab04efe52f63427e4e52805124e375a74f029890a72f1b
Contents?: true
Size: 1.1 KB
Versions: 3
Compression:
Stored size: 1.1 KB
Contents
require 'spec_helper' module Refinery module <%= namespacing %> describe Setting, :type => :model do describe ".confirmation_message=" do it "delegates to Refinery::Setting#set" do expect(Refinery::Setting).to receive(:set). with(:<%= singular_name %>_confirmation_message, "some value") Refinery::<%= namespacing %>::Setting.confirmation_message = "some value" end end describe ".confirmation_subject=" do it "delegates to Refinery::Setting#set" do expect(Refinery::Setting).to receive(:set). with(:<%= singular_name %>_confirmation_subject, "some value") Refinery::<%= namespacing %>::Setting.confirmation_subject = "some value" end end describe ".notification_recipients=" do it "delegates to Refinery::Setting#set" do expect(Refinery::Setting).to receive(:set). with(:<%= singular_name %>_notification_recipients, "some value") Refinery::<%= namespacing %>::Setting.notification_recipients = "some value" end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems