spec/zen/package/comments/controller/comments.rb in zen-0.4 vs spec/zen/package/comments/controller/comments.rb in zen-0.4.1
- old
+ new
@@ -157,9 +157,16 @@
end
page.has_selector?('span.error').should == true
end
+ it 'Gracefully handle non numeric comment IDs' do
+ visit(Comments::Controller::Comments.r(:edit, 'a').to_s)
+
+ page.current_path.should == index_url
+ page.has_selector?('.message.error').should == true
+ end
+
enable_javascript
it 'Automatically save a comment' do
visit(index_url)
click_link('Spec comment')