annotate test/controllers/pastes_controller_test.rb @ 298:ff27821f9272

A test! Can you imagine that?!
author edogawaconan <me@myconan.net>
date Wed, 12 Feb 2014 15:10:42 +0900
parents
children 3c22d4acc2fa
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
298
ff27821f9272 A test! Can you imagine that?!
edogawaconan <me@myconan.net>
parents:
diff changeset
1 require "test_helper"
ff27821f9272 A test! Can you imagine that?!
edogawaconan <me@myconan.net>
parents:
diff changeset
2
ff27821f9272 A test! Can you imagine that?!
edogawaconan <me@myconan.net>
parents:
diff changeset
3 class PastesControllerTest < ActionController::TestCase
ff27821f9272 A test! Can you imagine that?!
edogawaconan <me@myconan.net>
parents:
diff changeset
4 test "filters spam" do
ff27821f9272 A test! Can you imagine that?!
edogawaconan <me@myconan.net>
parents:
diff changeset
5 assert_no_difference("Paste.count") do
ff27821f9272 A test! Can you imagine that?!
edogawaconan <me@myconan.net>
parents:
diff changeset
6 post :create, "url1" => "http://hello.com", "paste" => { "paste" => "here be paste", "key" => "12341234" }
ff27821f9272 A test! Can you imagine that?!
edogawaconan <me@myconan.net>
parents:
diff changeset
7 end
ff27821f9272 A test! Can you imagine that?!
edogawaconan <me@myconan.net>
parents:
diff changeset
8
ff27821f9272 A test! Can you imagine that?!
edogawaconan <me@myconan.net>
parents:
diff changeset
9 assert_response :success
ff27821f9272 A test! Can you imagine that?!
edogawaconan <me@myconan.net>
parents:
diff changeset
10 end
ff27821f9272 A test! Can you imagine that?!
edogawaconan <me@myconan.net>
parents:
diff changeset
11 end