Sha256: 2ba3b87c86acfcaf3614a1a7a63f95730f646fab31b0cd2a7110a17f4b04b234

Contents?: true

Size: 423 Bytes

Versions: 34

Compression:

Stored size: 423 Bytes

Contents

require_relative '../spec_helper'

describe RestfulResource::Base do
  context "#get" do
    it "should throw an exception with wrong url" do
      expect{RestClient.get("http://www.example.com/djksafjadl", params: {})}.to raise_error
    end

    it "should throw an exception with wrong url" do
      r = RestClient::Resource.new("http://www.example.com/djksafjadl")
      expect{r.get}.to raise_error
    end
  end

end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
restful_resource-0.8.13 spec/restful_resource/rest_client_spec.rb
restful_resource-0.8.12 spec/restful_resource/rest_client_spec.rb
restful_resource-0.8.11 spec/restful_resource/rest_client_spec.rb
restful_resource-0.8.10 spec/restful_resource/rest_client_spec.rb
restful_resource-0.8.9 spec/restful_resource/rest_client_spec.rb
restful_resource-0.8.8 spec/restful_resource/rest_client_spec.rb
restful_resource-0.8.7 spec/restful_resource/rest_client_spec.rb
restful_resource-0.8.6 spec/restful_resource/rest_client_spec.rb
restful_resource-0.8.5 spec/restful_resource/rest_client_spec.rb
restful_resource-0.8.4 spec/restful_resource/rest_client_spec.rb
restful_resource-0.8.3 spec/restful_resource/rest_client_spec.rb
restful_resource-0.8.2 spec/restful_resource/rest_client_spec.rb
restful_resource-0.8.1 spec/restful_resource/rest_client_spec.rb
restful_resource-0.8.0 spec/restful_resource/rest_client_spec.rb