Skip to content

Commit 9792e95

Browse files
committed
Remove same tests and trim some whitespace
1 parent c325ef9 commit 9792e95

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

spec/requests/user_pages_spec.rb

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
subject { page }
66

77
describe "index" do
8-
8+
99
before do
1010
sign_in FactoryGirl.create(:user)
1111
FactoryGirl.create(:user, name: "Bob", email: "[email protected]")
@@ -16,7 +16,7 @@
1616
it { should have_selector('title', text: 'All users') }
1717

1818
describe "pagination" do
19-
19+
2020
before(:all) { 30.times { FactoryGirl.create(:user) } }
2121
after(:all) { User.delete_all }
2222

@@ -52,7 +52,7 @@
5252
page.should have_selector('li', text: user.name)
5353
end
5454
end
55-
end
55+
end
5656
end
5757

5858
describe "delete links" do
@@ -91,9 +91,6 @@
9191
it { should have_content(user.microposts.count) }
9292
end
9393

94-
it { should have_selector('h1', text: user.name) }
95-
it { should have_selector('title', text: user.name) }
96-
9794
describe "follow/unfollow buttons" do
9895
let(:other_user) { FactoryGirl.create(:user) }
9996
before { sign_in user }
@@ -162,7 +159,7 @@
162159
it "should not create a user" do
163160
expect { click_button submit }.not_to change(User, :count)
164161
end
165-
162+
166163
describe "error messages" do
167164
before { click_button submit }
168165

@@ -185,7 +182,7 @@
185182

186183
describe "after saving the user" do
187184
before { click_button submit }
188-
185+
189186
let(:user) { User.find_by_email('[email protected]') }
190187

191188
it { should have_selector('title', text: user.name) }
@@ -194,7 +191,7 @@
194191
end
195192
end
196193
end
197-
194+
198195
describe "edit" do
199196
let(:user) { FactoryGirl.create(:user) }
200197
before do

0 commit comments

Comments
 (0)