1
0
Fork 0
mirror of https://github.com/rest-client/rest-client.git synced 2022-11-09 13:49:40 -05:00

spec for no user/password on resource init

This commit is contained in:
Adam Wiggins 2008-03-10 18:30:14 -07:00
parent d66eaab936
commit d484781d75
2 changed files with 5 additions and 1 deletions

View file

@ -30,7 +30,7 @@ require 'rake/gempackagetask'
require 'rake/rdoctask'
require 'fileutils'
version = "0.1"
version = "0.2"
name = "rest-client"
spec = Gem::Specification.new do |s|

View file

@ -24,4 +24,8 @@ describe RestClient::Resource do
RestClient::Request.should_receive(:execute).with(:method => :delete, :url => 'http://some/resource', :headers => {}, :user => 'jane', :password => 'mypass')
@resource.delete
end
it "can instantiate with no user/password" do
@resource = RestClient::Resource.new('http://some/resource')
end
end