Sha256: 4dae4c97b5d8f6074ab2ee488d1817943745dc91267a64af0d44156666a52591
Contents?: true
Size: 1.56 KB
Versions: 3
Compression:
Stored size: 1.56 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 it "can assign a merchant_account_time_zone" do old_merchant_account_time_zone = subject.merchant_account_time_zone begin subject.merchant_account_time_zone = "International Date Line West" subject.merchant_account_time_zone.should == "International Date Line West" ensure subject.merchant_account_time_zone = old_merchant_account_time_zone end end it "defaults merchant_account_time_zone to 'Eastern Time (US & Canada)'" do subject.merchant_account_time_zone.should == "Eastern Time (US & Canada)" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
saucy-0.10.10 | spec/saucy/configuration_spec.rb |
saucy-0.10.9 | spec/saucy/configuration_spec.rb |
saucy-0.10.8 | spec/saucy/configuration_spec.rb |