Skip to content

Commit b123a27

Browse files
committed
Trim whitespace
1 parent 7352e6f commit b123a27

11 files changed

Lines changed: 15 additions & 15 deletions

File tree

app/controllers/static_pages_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ def home
66
@feed_items = current_user.feed.paginate(page: params[:page])
77
end
88
end
9-
9+
1010
def help
1111
end
1212

app/controllers/users_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class UsersController < ApplicationController
2-
before_filter :signed_in_user,
2+
before_filter :signed_in_user,
33
only: [:index, :edit, :update, :destroy, :following, :followers]
44
before_filter :correct_user, only: [:edit, :update]
55
before_filter :admin_user, only: :destroy

app/models/micropost.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Micropost < ActiveRecord::Base
1010
def self.from_users_followed_by(user)
1111
followed_user_ids = "SELECT followed_id FROM relationships
1212
WHERE follower_id = :user_id"
13-
where("user_id IN (#{followed_user_ids}) OR user_id = :user_id",
13+
where("user_id IN (#{followed_user_ids}) OR user_id = :user_id",
1414
user_id: user.id)
1515
end
1616
end

app/views/layouts/application.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<%= stylesheet_link_tag "application", media: "all" %>
66
<%= javascript_include_tag "application" %>
77
<%= csrf_meta_tags %>
8-
<%= render 'layouts/shim' %>
8+
<%= render 'layouts/shim' %>
99
</head>
1010
<body>
1111
<%= render 'layouts/header' %>

app/views/static_pages/home.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
sample application.
2727
</h2>
2828

29-
<%= link_to "Sign up now!", signup_path,
29+
<%= link_to "Sign up now!", signup_path,
3030
class: "btn btn-large btn-primary" %>
3131
</div>
3232

app/views/users/edit.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<% provide(:title, "Edit user") %>
1+
<% provide(:title, "Edit user") %>
22
<h1>Update your profile</h1>
33

44
<div class="row">

spec/factories.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FactoryGirl.define do
22
factory :user do
33
sequence(:name) { |n| "Person #{n}" }
4-
sequence(:email) { |n| "person_#{n}@example.com"}
4+
sequence(:email) { |n| "person_#{n}@example.com"}
55
password "foobar"
66
password_confirmation "foobar"
77

spec/models/micropost_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
expect do
2020
Micropost.new(user_id: user.id)
2121
end.to raise_error(ActiveModel::MassAssignmentSecurity::Error)
22-
end
22+
end
2323
end
2424

2525
describe "when user_id is not present" do

spec/models/relationship_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
expect do
1616
Relationship.new(follower_id: follower.id)
1717
end.to raise_error(ActiveModel::MassAssignmentSecurity::Error)
18-
end
18+
end
1919
end
2020

2121
describe "follower methods" do

spec/requests/authentication_pages_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
it { should_not have_selector('div.alert.alert-error') }
2626
end
2727
end
28-
28+
2929
describe "with valid information" do
3030
let(:user) { FactoryGirl.create(:user) }
3131
before do
@@ -78,7 +78,7 @@
7878
end
7979

8080
it "should render the default (profile) page" do
81-
page.should have_selector('title', text: user.name)
81+
page.should have_selector('title', text: user.name)
8282
end
8383
end
8484
end
@@ -133,7 +133,7 @@
133133

134134
describe "submitting to the destroy action" do
135135
before { delete relationship_path(1) }
136-
specify { response.should redirect_to(signin_url) }
136+
specify { response.should redirect_to(signin_url) }
137137
end
138138
end
139139
end
@@ -162,7 +162,7 @@
162162

163163
describe "submitting a DELETE request to the Users#destroy action" do
164164
before { delete user_path(user) }
165-
specify { response.should redirect_to(root_url) }
165+
specify { response.should redirect_to(root_url) }
166166
end
167167
end
168168
end

0 commit comments

Comments
 (0)