Permalink
Browse files

Remove trailing whitespaces

  • Loading branch information...
1 parent 7e8e9dc commit 9ce208c583921654cd608a048fad1a17e4b639f8 @rwz committed Sep 28, 2013
Showing with 12 additions and 12 deletions.
  1. +11 −11 spec/controllers/nestive_spec.rb
  2. +1 −1 spec/internal/app/controllers/nestive_controller.rb
@@ -2,54 +2,54 @@
describe NestiveController do
render_views
-
+
context '#area' do
it 'is empty by default' do
get :index
assert_select '#empty-area', ''
end
-
+
it 'shows initial value if any' do
get :index
assert_select 'title', 'Nestive'
end
-
+
it 'can accept blocks as initial value' do
get :index
assert_select '#some-area', 'Some content'
end
end
-
+
context '#append' do
it 'appends content to area as a string' do
get :append
assert_select 'title', 'Nestive is awesome'
end
-
+
it 'appends content to area as a block' do
get :append
assert_select '#some-area', "Some content\n Another content"
end
end
-
+
context '#prepend' do
it 'prepends content to area as a string' do
get :prepend
assert_select 'title', 'Awesome Nestive'
end
-
+
it 'prepends content to area as a block' do
get :prepend
assert_select '#some-area', "Prepended\n Some content"
end
end
-
+
context '#replace' do
it 'replaces area content with string' do
get :replace
assert_select 'title', 'Lolwut'
end
-
+
it 'replaces area content with block' do
get :replace
assert_select '#some-area', 'replaced'
@@ -70,7 +70,7 @@
assert_select 'title', 'extended: one'
assert_select 'h2', 'extended: one'
end
-
+
it 'can extend already extended layouts' do
get :extended_two
assert_select 'p', 'extended: two'
@@ -83,5 +83,5 @@
get :extended_three
end
end
-
+
end
@@ -2,7 +2,7 @@ class NestiveController < ApplicationController
def extended_one
render :layout => 'extend_one'
end
-
+
def extended_two
render :layout => 'extend_two'
end

0 comments on commit 9ce208c

Please sign in to comment.