Sha256: 6b1b7178e4e43c68b3a0f18ba8f0d9dbf6a86a91be23eea54722621b0746664c

Contents?: true

Size: 475 Bytes

Versions: 7

Compression:

Stored size: 475 Bytes

Contents

require 'spec_helper'

describe ContactUs do

  it "should be valid" do
    ContactUs.should be_a(Module)
  end

  describe 'setup block' do
    it 'should yield self' do
      ContactUs.setup do |config|
        ContactUs.should eql(config)
      end
    end
  end

  describe 'mailer_to' do
    it 'should be configurable' do
      ContactUs.mailer_to = "contact@please-change-me.com"
      ContactUs.mailer_to.should eql("contact@please-change-me.com")
    end
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
contact_us-0.1.5 spec/contact_us_spec.rb
contact_us-0.1.4 spec/contact_us_spec.rb
contact_us-0.1.3 spec/contact_us_spec.rb
contact_us-0.1.2 spec/contact_us_spec.rb
contact_us-0.1.1 spec/contact_us_spec.rb
contact_us-0.1.0 spec/contact_us_spec.rb
contact_us-0.0.8 spec/contact_us_spec.rb