Sha256: 79ad35a00b106364aeed5e0ecdc432f2d00189578fdb2ab27b2b01e9efe972ef

Contents?: true

Size: 725 Bytes

Versions: 3

Compression:

Stored size: 725 Bytes

Contents

require 'spec_helper'

describe Reshape::Client::Printers do
  let(:client) do
    shapeways_client
  end
  
  after(:each) do
    shapeways_client.reset
  end

  it "should list printers in json" do
    VCR.use_cassette('printers') do
      response = client.printers
      response.should be_an_instance_of(Hashie::Mash)
      response.result.should == 'success'
      response.printers.should be_a_kind_of(Array)
    end
  end 
  
  it "should return specific printer info in json" do
    VCR.use_cassette('printer') do
      response = client.printer(8)
      response.should be_an_instance_of(Hashie::Mash)
      response.result.should == 'success'
      response.title.should == 'SLS Color Printer'
    end
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
reshape-0.2 spec/reshape/client/printers_spec.rb
reshape-0.1.1 spec/reshape/client/printers_spec.rb
reshape-0.1 spec/reshape/client/printers_spec.rb