Sha256: deda64591f81ba153287f16cff661bcc6e2b22b1d49fe02cdef61b42015109af
Contents?: true
Size: 746 Bytes
Versions: 3
Compression:
Stored size: 746 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' end opensrs = MooMoo::BaseCommand.new opensrs.host.should == 'host.com' opensrs.key.should == 'secret' opensrs.username.should == 'username' end end describe "::config" do it { MooMoo.should have_attr_accessor :config } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
moo_moo-0.12.0 | spec/moo_moo_spec.rb |
moo_moo-0.11.0 | spec/moo_moo_spec.rb |
moo_moo-0.10.0 | spec/moo_moo_spec.rb |