Sha256: eb5fa24cfeaa8432092666a0df4f82ed74474eba9028882454e90ec244920c75

Contents?: true

Size: 454 Bytes

Versions: 3

Compression:

Stored size: 454 Bytes

Contents

require 'helper'

describe MtGox do
  describe ".new" do
    it "should return a MtGox::Client" do
      MtGox.new.should be_a MtGox::Client
    end
  end

  describe ".configure" do
    it "should set 'username' and 'password'" do
      MtGox.configure do |config|
        config.username = "username"
        config.password = "password"
      end

      MtGox.username.should == "username"
      MtGox.password.should == "password"
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mtgox-0.7.1 spec/mtgox_spec.rb
mtgox-0.7.0 spec/mtgox_spec.rb
mtgox-0.6.0 spec/mtgox_spec.rb