Permalink
Browse files

Add test code.

  • Loading branch information...
1 parent f7a2310 commit d7d43784baa3a113789a49b9b9c13d7843de72b4 @akiko-pusu committed Apr 3, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/functional/banner_controller_test.rb
@@ -21,18 +21,18 @@ def setup
@settings["enable"] = "true";
end
- test "should off banner" do
+ should "should off banner" do
get :off
assert_response :success, "returned #{@response}"
assert_equal "false", @settings["enable"]
end
- test "routing check" do
+ should "routing check" do
assert_generates('banner/preview', { :controller => 'banner', :action => 'preview'})
assert_generates('banner/off', { :controller => 'banner', :action => 'off'})
end
- test "should preview banner" do
+ should "should preview banner" do
get :preview, {:settings => {:banner_description=> "h1. Test data."}}
assert_template "common/_preview.html.erb"
assert_select 'h1', /Test data\./, "#{@response.body}"

0 comments on commit d7d4378

Please sign in to comment.