test/integrations/views_integration_test.rb in errdo-0.12.7 vs test/integrations/views_integration_test.rb in errdo-0.12.8
- old
+ new
@@ -19,10 +19,15 @@
get @errdo.error_path(Errdo::Error.last)
assert_response :success
end
should "be able to get an error's page with a specific instance selected" do
- get @errdo.error_path(Errdo::Error.last, occurrence_id: Errdo::ErrorOccurrence.last)
+ get @errdo.error_path(Errdo::Error.last, occurrence_id: Errdo::ErrorOccurrence.last.id)
+ assert_response :success
+ end
+
+ should "be able to get an error's page with a specific index selected" do
+ get @errdo.error_path(Errdo::Error.last, occurrence_index: 0)
assert_response :success
end
should "strip off asset hash" do
get static_view_error_path