Mercurial > zeropaste
comparison 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 |
comparison
equal
deleted
inserted
replaced
297:dff632a63ada | 298:ff27821f9272 |
---|---|
1 require "test_helper" | |
2 | |
3 class PastesControllerTest < ActionController::TestCase | |
4 test "filters spam" do | |
5 assert_no_difference("Paste.count") do | |
6 post :create, "url1" => "http://hello.com", "paste" => { "paste" => "here be paste", "key" => "12341234" } | |
7 end | |
8 | |
9 assert_response :success | |
10 end | |
11 end |