Sha256: 781a592982dd086d11717db75594be97c0231150a276b732d714751f7fee3971
Contents?: true
Size: 825 Bytes
Versions: 6
Compression:
Stored size: 825 Bytes
Contents
require 'spec_helper' describe MooMoo do describe "::Version" do it "has a valid version" do MooMoo::Version.should match /\d+\.\d+\.\d+/ end end describe "::configure" do it { MooMoo.configure.should be_a MooMoo::Config } it "loads default settings from config if none are provided" do MooMoo.configure do |config| config.host = 'host.com' config.key = 'secret' config.username = 'username' config.password = 'secret2' end opensrs = MooMoo::BaseCommand.new opensrs.host.should == 'host.com' opensrs.key.should == 'secret' opensrs.username.should == 'username' opensrs.password.should == 'secret2' end end describe "::config" do it { MooMoo.should have_attr_accessor :config } end end
Version data entries
6 entries across 6 versions & 1 rubygems