Sha256: d276549c33fa3871c44ee41a164030b800507a917edff7ca22b68107a3ce2468

Contents?: true

Size: 1.27 KB

Versions: 36

Compression:

Stored size: 1.27 KB

Contents

require 'test_helper'

class NoNotifierNeededTest < ActiveSupport::TestCase
  test "truth" do
    assert_kind_of Module, NoNotifierNeeded
  end
end

class TestNoNotifierNeeded < Test::Unit::TestCase
  context 'Responds to expected calls' do
    setup do
      NoNotifierNeeded.configure do |c|
        c.from_name = "NoNotifier"
        c.from_email = "hello@NoNotifier.co"
        c.bcc = "emails@NoNotifier.com"
        c.host = 'http://nonotifier.co'
      end
    end

    #All Modules Exist
    should "Have Rails Loaded And Notifier Exists" do
      assert ActionMailer
      assert NoNotifierNeeded::Render
      assert NoNotifierNeeded::Sender
      assert NoNotifierNeeded::Translate
      assert NoNotifierNeeded::Config
      assert Notifier
    end

    #Model Exists
    should "Have a EmailTemplate" do
      assert EmailTemplate
    end

    #Notifier
    %w{mcp url_for email_link_to}.each do |m|
      should "Respond to #{m}" do
        assert Notifier.method_defined?(m.to_sym)
      end
    end

    #Render
    %w{render_template_subject_type render_template_body_type render_erb render_haml}.each do |c|
      should "Respond to #{c}" do
        assert NoNotifierNeeded::Render.method_defined?(c.to_sym)
        assert Notifier.method_defined?(c.to_sym)
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
no_notifier_needed-2.1.0 test/test_no_notifier_needed.rb
no_notifier_needed-2.0.17 test/test_no_notifier_needed.rb
no_notifier_needed-2.0.16 test/test_no_notifier_needed.rb
no_notifier_needed-2.0.15 test/test_no_notifier_needed.rb
no_notifier_needed-2.0.14 test/test_no_notifier_needed.rb
no_notifier_needed-2.0.13 test/test_no_notifier_needed.rb
no_notifier_needed-2.0.12 test/test_no_notifier_needed.rb
no_notifier_needed-2.0.11 test/test_no_notifier_needed.rb
no_notifier_needed-2.0.9 test/test_no_notifier_needed.rb
no_notifier_needed-2.0.8 test/test_no_notifier_needed.rb
no_notifier_needed-2.0.4 test/test_no_notifier_needed.rb
no_notifier_needed-2.0.3 test/test_no_notifier_needed.rb
no_notifier_needed-2.0.2 test/test_no_notifier_needed.rb
no_notifier_needed-2.0.1 test/test_no_notifier_needed.rb
no_notifier_needed-2.0.0 test/test_no_notifier_needed.rb
no_notifier_needed-1.0.0 test/test_no_notifier_needed.rb