# HG changeset patch # User edogawaconan # Date 1392185442 -32400 # Node ID ff27821f9272e57604c9ccdde3c277815a05dca3 # Parent dff632a63ada213d335ea4ebba43a1b77b55d872 A test! Can you imagine that?! diff -r dff632a63ada -r ff27821f9272 test/controllers/pastes_controller_test.rb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/controllers/pastes_controller_test.rb Wed Feb 12 15:10:42 2014 +0900 @@ -0,0 +1,11 @@ +require "test_helper" + +class PastesControllerTest < ActionController::TestCase + test "filters spam" do + assert_no_difference("Paste.count") do + post :create, "url1" => "http://hello.com", "paste" => { "paste" => "here be paste", "key" => "12341234" } + end + + assert_response :success + end +end