Sha256: 5821f959d1a3eec22f29a888c8a885d9652c9d4e95e3f50271b6c51eecf10e78

Contents?: true

Size: 626 Bytes

Versions: 3

Compression:

Stored size: 626 Bytes

Contents

require 'spec_helper'

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

  it "should list materials in json" do
    VCR.use_cassette('materials') do
      response = client.materials
      response.should be_an_instance_of(Hashie::Mash)
      response.result.should == 'success'
    end
  end 
  
  it "should add an order to the cart in json" do
    VCR.use_cassette('material') do
      response = client.material(77)
      response.should be_an_instance_of(Hashie::Mash)
      response.result.should == 'success'
    end
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

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