Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

A widget needs an ID for widget_path to work correctly

* I'm not sure how I missed this earlier. It's the source of the build
  being red.
  • Loading branch information...
commit f9d3015c3a465fb1719f2499c8be1253cfa1c2b8 1 parent 3d4f317
alindeman alindeman authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  features/helper_specs/helper_spec.feature
2  features/helper_specs/helper_spec.feature
View
@@ -103,7 +103,7 @@ Feature: helper spec
describe WidgetsHelper do
describe "#link_to_widget" do
it "links to a widget using its name" do
- widget = Widget.new(:name => "This Widget")
+ widget = Widget.create!(:name => "This Widget")
expect(helper.link_to_widget(widget)).to include("This Widget")
expect(helper.link_to_widget(widget)).to include(widget_path(widget))
end
Please sign in to comment.
Something went wrong with that request. Please try again.