Sha256: a48bfdb3f74a571399fe8b5fa296ec03a840ee88e725f2c0a2cddc46bb0faaae

Contents?: true

Size: 652 Bytes

Versions: 2

Compression:

Stored size: 652 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')


describe Zoomit do
  
  it "should include HTTParty" do
    Zoomit.ancestors.include?(HTTParty).should be_true
  end
  
  it "should set the HTTParty base_uri" do
    Zoomit.base_uri.should == "http://api.zoom.it/#{Zoomit::API_VERSION}"
  end
  
  it "should set the HTTParty format" do
    Zoomit.format.should == :json
  end
  
  it "should set the API version" do
    Zoomit::API_VERSION.should == "v1"
  end
  
  
  describe ".perform_get" do

    it "should fail if url is absent" do
      lambda { Zoomit.perform_get }.should raise_error(ArgumentError)
    end
    
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
zoomit-0.0.2 spec/zoomit_spec.rb
zoomit-0.0.1 spec/zoomit_spec.rb