Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed trailing whitespace.

Because it's evil and evil must be purged.
  • Loading branch information...
commit a4b87e31c058ded0d3f159010a07414930dbde37 1 parent 8204c74
@linduxed linduxed authored
Showing with 8 additions and 8 deletions.
  1. +3 −3 README.md
  2. +5 −5 spec/controllers/pages_controller_spec.rb
View
6 README.md
@@ -77,7 +77,7 @@ Which will render a homepage from app/views/pages/home.html.erb
#### Enabling root domain routes
-You can remove the directory `pages` from the URL path and serve up routes from
+You can remove the directory `pages` from the URL path and serve up routes from
the root of the domain path:
http://www.example.com/about
@@ -93,7 +93,7 @@ This is accomplished by changing the `HighVoltage.route_drawer` to `HighVoltage:
# config/initializers/high_voltage.rb
HighVoltage.route_drawer = HighVoltage::RouteDrawers::Root
-Note: This is not a catchall route. It will check the `HighVoltage.content_path`
+Note: This is not a catchall route. It will check the `HighVoltage.content_path`
(by default this is `app/views/pages`) and validate the view exists.
#### Disabling routes
@@ -184,7 +184,7 @@ system, A/B test, and so on.
Testing
-------
-You can test your static pages using [RSpec](https://github.com/rspec/rspec-rails)
+You can test your static pages using [RSpec](https://github.com/rspec/rspec-rails)
and [shoulda-matchers](https://github.com/thoughtbot/shoulda-matchers):
# spec/controllers/pages_controller_spec.rb
View
10 spec/controllers/pages_controller_spec.rb
@@ -98,21 +98,21 @@
end
it 'should raise a routing error for an invalid page' do
- lambda {
- get :show,
- :id => 'also_invalid'
+ lambda {
+ get :show,
+ :id => 'also_invalid'
}.should raise_error(ActionController::RoutingError)
end
it 'should raise a routing error for a page in another directory' do
lambda {
get :show,
- :id => '../other/wrong'
+ :id => '../other/wrong'
}.should raise_error(ActionController::RoutingError)
end
it 'should raise a routing error for a page in another directory when using a Unicode exploit' do
- lambda {
+ lambda {
get :show,
:id => '/\\../other/wrong'
}.should raise_error(ActionController::RoutingError)
Please sign in to comment.
Something went wrong with that request. Please try again.