OS = CentOS-5.2
I have asked about this on the RSpec list but I am repeating my request
here to reach a somewhat wider audience.
I am running a cucumber feature test that invokes webrat. The step is
defined as follows:
Given /I am on the new entity page/ do
rake features then generates the following error:
Scenario: Register a new entity #
Given I am on the new entity page #
wrong number of arguments (3 for 1) (ActionView::TemplateError)
On line #10 of app/views/entities/new.html.erb
7: <% form_for(@entity) do |f| %> 8: 9: <%= render :partial => 'entities/entity_header', 10: :object => @entity -%> 11: 12: <p> 13: <%= f.submit "Create" -%> vendor/plugins/rspec-rails/lib/spec/rails/extensions/action_view/base.rb:13:in
This code actually works without error but I infer that I am tripping
over some assumptions that webrat makes about views. Is what I have
done wrong obvious to anyone here?