Sha256: 2ba28fbcb018ab4eb26dc6ca0cf245982c7df0c117f7ecd3ad6a0be640e0f539
Contents?: true
Size: 702 Bytes
Versions: 11
Compression:
Stored size: 702 Bytes
Contents
require 'spec_helper' describe Notifiable::App do let(:notifiable_app) { FactoryGirl.create(:app, :configuration => {:configurable_mock => {:use_sandbox => true}}) } let(:notification) { FactoryGirl.create(:notification, :app => notifiable_app) } let(:notifier) { ConfigurableMockNotifier.new(Rails.env, notification) } it "contains notifications" do notification.app.should_not be_nil notifiable_app.notifications.count.should == 1 end it "configures a notifier" do notifiable_app.configure :configurable_mock, notifier notifier.use_sandbox.should == true end end class ConfigurableMockNotifier < Notifiable::NotifierBase attr_accessor :use_sandbox end
Version data entries
11 entries across 11 versions & 1 rubygems