Sha256: 6e2adb9ebed1937a9e3d115de5b86a44eefc8f6599c33c3c77a45dd007fe5024
Contents?: true
Size: 647 Bytes
Versions: 3
Compression:
Stored size: 647 Bytes
Contents
require 'spec_helper' describe Notifiable::NotifierBase do describe "#test_env?" do let(:notifiable_app) { FactoryGirl.create(:app, :configuration => {:configurable_mock => {:use_sandbox => true}}) } let(:notification) { FactoryGirl.create(:notification, :app => notifiable_app) } subject(:notifier) { ConfigurableMockNotifier.new(Rails.env, notification) } before(:each) { ConfigurableMockNotifier.send(:public, *ConfigurableMockNotifier.protected_instance_methods) } it { expect(notifier.test_env?).to eq true } end end class ConfigurableMockNotifier < Notifiable::NotifierBase attr_accessor :use_sandbox end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
notifiable-rails-0.21.1 | spec/model/notifier_base_spec.rb |
notifiable-rails-0.21.0 | spec/model/notifier_base_spec.rb |
notifiable-rails-0.20.0 | spec/model/notifier_base_spec.rb |