From 423dfc13b8977facbe7450c6ac1f756b22cacdd4 Mon Sep 17 00:00:00 2001 From: evazion Date: Sun, 5 Feb 2017 16:31:37 -0600 Subject: [PATCH] tests: add sources controller tests. --- test/functional/sources_controller_test.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/functional/sources_controller_test.rb diff --git a/test/functional/sources_controller_test.rb b/test/functional/sources_controller_test.rb new file mode 100644 index 000000000..f78df071b --- /dev/null +++ b/test/functional/sources_controller_test.rb @@ -0,0 +1,12 @@ +require 'test_helper' + +class SourcesControllerTest < ActionController::TestCase + context "The sources controller" do + context "show action" do + should "work" do + get :show, { url: "http://www.pixiv.net/member_illust.php?mode=medium&illust_id=14901720", format: "json" } + assert_response :success + end + end + end +end