Sha256: d79eae027877a701d3cd6ae5cd5ec5c326e03533823e391080d35434ea885cc6
Contents?: true
Size: 1.12 KB
Versions: 10
Compression:
Stored size: 1.12 KB
Contents
require 'spec_helper' describe IdealMollie::Config do before(:each) do @config = IdealMollie::Config @config.test_mode = true @config.partner_id = 123456 @config.profile_key = "321zyx12" @config.report_url = "http://example.org/report" @config.return_url = "http://example.org/return" end describe "#reset!" do it "should reset the values" do @config.reset! @config.test_mode.should be_false @config.partner_id.should be_nil @config.profile_key.should be_nil @config.report_url.should be_nil @config.return_url.should be_nil end end describe "#update!" do it "should update" do @config.reset! @config.test_mode = false @config.partner_id = 987654 @config.profile_key = "123abc45" @config.report_url = "report" @config.return_url = "return" @config.update! config = IdealMollie::Config config.test_mode.should be_false config.partner_id.should eq 987654 config.profile_key.should eq "123abc45" config.report_url.should eq "report" config.return_url.should eq "return" end end end
Version data entries
10 entries across 10 versions & 1 rubygems