Sha256: b5c57020951a490479bfb1c18244b06dc11c3a17e9b19789940dbaa5bc5b79db

Contents?: true

Size: 1.02 KB

Versions: 14

Compression:

Stored size: 1.02 KB

Contents

require 'spec_helper'

describe Saucy::Configuration do
  it "has layouts" do
    subject.layouts.should be_a(Saucy::Layouts)
  end

  it "has a manager_email_address" do
    subject.manager_email_address.should_not be_nil
  end

  it "has a support_email_address" do
    subject.support_email_address.should_not be_nil
  end

  it "has a nil merchant_account_id" do
    subject.merchant_account_id.should be_nil
  end

  it "can assign a manager email address" do
    old_address = subject.manager_email_address
    begin
      subject.manager_email_address = 'newsender@example.com'
      subject.manager_email_address.should == 'newsender@example.com'
    ensure
      subject.manager_email_address = old_address
    end
  end

  it "can assign a support email address" do
    old_address = subject.support_email_address
    begin
      subject.support_email_address = 'newsender@example.com'
      subject.support_email_address.should == 'newsender@example.com'
    ensure
      subject.support_email_address = old_address
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
saucy-0.12.0 spec/saucy/configuration_spec.rb
saucy-0.11.5 spec/saucy/configuration_spec.rb
saucy-0.11.3 spec/saucy/configuration_spec.rb
saucy-0.11.2 spec/saucy/configuration_spec.rb
saucy-0.10.7 spec/saucy/configuration_spec.rb
saucy-0.10.6 spec/saucy/configuration_spec.rb
saucy-0.10.5 spec/saucy/configuration_spec.rb
saucy-0.10.4 spec/saucy/configuration_spec.rb
saucy-0.10.3 spec/saucy/configuration_spec.rb
saucy-0.10.2 spec/saucy/configuration_spec.rb
saucy-0.10.1 spec/saucy/configuration_spec.rb
saucy-0.10.0 spec/saucy/configuration_spec.rb
saucy-0.9.1 spec/saucy/configuration_spec.rb
saucy-0.9.0 spec/saucy/configuration_spec.rb