Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added test to make sure that no custom stylesheets works as expected.

  • Loading branch information...
commit 7e91ad8bc9a01c6fc0c96942528cd9d56ffad7ea 1 parent 6ea7be1
Alan Johnson authored
View
6 test/config/initializers/control_center.rb
@@ -2,8 +2,4 @@
# preferences
ControlCenter::Config.app_title = "Control Center"
-ControlCenter::Config.theme_color = "#0033CC"
-ControlCenter::Config.custom_css = {
- "custom_css_1" => { :media => :all },
- "custom_css_2" => { :media => :print }
-}
+ControlCenter::Config.theme_color = "#0033CC"
View
16 test/log/test.log
@@ -89,3 +89,19 @@ Rendering test/index
Rendered layouts/_header_links (0.2ms)
Rendered layouts/_tabs (0.5ms)
Completed in 7ms (View: 5, DB: 0) | 200 OK [http://test.host/]
+
+
+Processing TestController#index (for 0.0.0.0 at 2009-05-16 10:23:30) [GET]
+Rendering template within layouts/control_center
+Rendering test/index
+Rendered layouts/_header_links (0.2ms)
+Rendered layouts/_tabs (0.5ms)
+Completed in 7ms (View: 5, DB: 0) | 200 OK [http://test.host/]
+
+
+Processing TestController#index (for 0.0.0.0 at 2009-05-16 10:23:30) [GET]
+Rendering template within layouts/control_center
+Rendering test/index
+Rendered layouts/_header_links (0.1ms)
+Rendered layouts/_tabs (0.4ms)
+Completed in 3ms (View: 3, DB: 0) | 200 OK [http://test.host/]
View
6 test/test/functional/test_controller_test.rb
@@ -18,4 +18,10 @@ class TestControllerTest < ActionController::TestCase
:count => 1
assert_select "link[media=?]", "print", :count => 1
end
+
+ test "that viewing a page with no custom stylesheets works" do
+ get :index
+
+ assert_response :success
+ end
end
Please sign in to comment.
Something went wrong with that request. Please try again.