Sha256: ecb79673028810972409ef13e30fd283a46430ada0db9a66b8389e0f2804b964
Contents?: true
Size: 891 Bytes
Versions: 1
Compression:
Stored size: 891 Bytes
Contents
require 'spec_helper' require 'moo_moo/opensrs' require 'moo_moo/opensrs/utils' module MooMoo module OpenSRS describe OpenSRS do include Utils describe "Utils" do it "raises an OpenSRSException" do expect {try_opensrs { raise "Exception message" } }.to raise_error OpenSRSException end end describe "Config" do it "loads default settings from config if none are provided" do MooMoo.configure do |config| config.host = 'host.com' config.key = 'secret' config.user = 'username' config.pass = 'secret2' end opensrs = OpenSRS::Base.new opensrs.host.should == 'host.com' opensrs.key.should == 'secret' opensrs.user.should == 'username' opensrs.pass.should == 'secret2' end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
moo_moo-0.1.0 | spec/opensrs/opensrs_spec.rb |