Or am I misunderstanding something?
Partial lives in:
app/views/admin/command_templates/_fillerup.html.erb
This spec passes (there is no "fill" or "_fill" in the view directory):
describe "GET fillerup" do
it "assigns some stuff and renders a partial" do
should render_template "admin/command_templates/_fill" # I expected failure
should render_template "admin/command_templates/_fillerup" # "Correct" test
end
end
This fails (as I expect):
describe "GET fillerup" do
it "assigns some stuff and renders a partial" do
should render_template "admin/command_templates/_fillerupp" # extra "p"
end
end
It acts like it's doing a start_with?
on the path, perhaps to ignore extensions, or...?
rspec-rails 2.7.0, rails 3.1.2; other info available on request.
Verifying the behavior exists (or doesn't) would be helpful as a sanity check.