garybernhardt/raptor — comment on commit 781ee73deda66242d466a8ac98bd06b2a742a030
File:  line 0
By benmoss:

Trying to make specs pass on 1.9.3 and this is the only one that isn't obviously related to the the includes in RSpec (https://github.com/garybernhardt/raptor/issues/17). I get a wrong number of arguments error from "routes requests through the record, presenter, and template"

it "routes requests through the record, presenter, and template" do
request = request('GET', '/post/5')
rendered = FakeResources::Post.routes.call(request)
rendered.body.join('').strip.should == "It's FIRST POST!"
end

&

Raptor::Router routes requests through the record, presenter, and template
Failure/Error: rendered = FakeResources::Post.routes.call(request)
ArgumentError:
wrong number of arguments(1 for 0)
# ./spec/fake_resources.rb:48:in `initialize'
# ./spec/fake_resources.rb:48:in `new'
# ./spec/fake_resources.rb:48:in `find_by_id'
# ./lib/raptor/injector.rb:16:in `call'
# ./lib/raptor/injector.rb:16:in `call'
# ./lib/raptor/delegation.rb:33:in `delegate'
# ./lib/raptor/router.rb:193:in `respond_to_request'
# ./lib/raptor/router.rb:17:in `call'
# ./spec/route_spec.rb:9:in `block (2 levels) in '