Skip to content

Commit

Permalink
tests running
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermesilveira committed Oct 19, 2010
1 parent b4181b2 commit ee23e69
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 22 deletions.
21 changes: 9 additions & 12 deletions lib/restfulie/client/http/request_wrappers.rb
Expand Up @@ -3,46 +3,43 @@ module Client
module HTTP #:nodoc:
#=A composition (deprecated)
class RequestFollowExecutor < MasterDelegator
def initialize
def initialize(host)
@requester = Restfulie.using {
follow_link
headers_dsl
verb_request
}
}.at(host)
end
end

#=A composition (deprecated)
class RequestHistoryExecutor < MasterDelegator
def initialize
def initialize(host)
@requester = Restfulie.using {
request_history
headers_dsl
verb_request
}
}.at(host)
end
end

#=A composition (deprecated)
class RequestMarshallerExecutor < MasterDelegator
def initialize
def initialize(host)
@requester = Restfulie.using {
request_marshaller
request_history
headers_dsl
verb_request
}
}.at(host)
end
end

#=A composition (deprecated)
class RequestBuilderExecutor < MasterDelegator
def initialize
def initialize(host)
@requester = Restfulie.using {
headers_dsl
verb_request
}
}.at(host)
end
end
end
end
end
2 changes: 1 addition & 1 deletion tests/spec/requests/http/adapter_spec.rb
Expand Up @@ -238,7 +238,7 @@ class FakeResponse < ::Restfulie::Client::HTTP::Response

before(:all) do
@host = "http://localhost:4567"
@client = ::Restfulie::Client::HTTP::RequestExecutor.new(@host)
@client = Restfulie.at(@host)
end

it "raise Error::Redirection error when 300..399 code is returned" do
Expand Down
18 changes: 9 additions & 9 deletions tests/spec/requests/http/marshal_spec.rb
Expand Up @@ -43,15 +43,15 @@

context 'marshal' do

before(:all) do
Restfulie.recipe(:atom, :name => :custom_song) do |representation, song|
representation.values do |value|
value.id "ID/#{song.id}"
value.title "Title #{song.title}"
value.updated song.updated
end
end
end
# before(:all) do
# Restfulie.recipe(:atom, :name => :custom_song) do |representation, song|
# representation.values do |value|
# value.id "ID/#{song.id}"
# value.title "Title #{song.title}"
# value.updated song.updated
# end
# end
# end

it 'should unmarshal' do
pending
Expand Down

0 comments on commit ee23e69

Please sign in to comment.