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.34 spec/restful_resource/rest_client_spec.rb
restful_resource-0.8.33 spec/restful_resource/rest_client_spec.rb
restful_resource-0.8.32 spec/restful_resource/rest_client_spec.rb
restful_resource-0.8.30 spec/restful_resource/rest_client_spec.rb
restful_resource-0.8.29 spec/restful_resource/rest_client_spec.rb
restful_resource-0.8.28 spec/restful_resource/rest_client_spec.rb
restful_resource-0.8.27 spec/restful_resource/rest_client_spec.rb
restful_resource-0.8.26 spec/restful_resource/rest_client_spec.rb
restful_resource-0.8.25 spec/restful_resource/rest_client_spec.rb
restful_resource-0.8.24 spec/restful_resource/rest_client_spec.rb
restful_resource-0.8.23 spec/restful_resource/rest_client_spec.rb
restful_resource-0.8.22 spec/restful_resource/rest_client_spec.rb
restful_resource-0.8.21 spec/restful_resource/rest_client_spec.rb
restful_resource-0.8.20 spec/restful_resource/rest_client_spec.rb
restful_resource-0.8.19 spec/restful_resource/rest_client_spec.rb
restful_resource-0.8.18 spec/restful_resource/rest_client_spec.rb
restful_resource-0.8.17 spec/restful_resource/rest_client_spec.rb
restful_resource-0.8.16 spec/restful_resource/rest_client_spec.rb
restful_resource-0.8.15 spec/restful_resource/rest_client_spec.rb
restful_resource-0.8.14 spec/restful_resource/rest_client_spec.rb