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...
alindeman committed Apr 7, 2013
1 parent 3d4f317 commit f9d3015c3a465fb1719f2499c8be1253cfa1c2b8
Showing with 1 addition and 1 deletion.
  1. +1 −1 features/helper_specs/helper_spec.feature
@@ -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 = => "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))

0 comments on commit f9d3015

Please sign in to comment.