Skip to content

Commit 99dbcef

Browse files
committed
Fixed some syntax details
1 parent 3a0eaba commit 99dbcef

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

spec/controllers/user_controller_spec.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
let(:bob){Fabricate(:user)}
55
let(:mozart){Fabricate(:user)}
66

7-
describe('#index') do
7+
describe '#index' do
88
context "When user is no moderator" do
99
it "try to get index" do
1010
get :index
11-
response.should redirect_to(root_path)
11+
expect(response).to redirect_to(root_path)
1212
end
1313
end
1414

@@ -23,29 +23,29 @@
2323

2424
describe 'Following actions' do
2525
before { sign_in bob }
26-
it('Try to follow himself') do
26+
it 'Try to follow himself' do
2727
post :follow, user_id: bob, :user => {:followee => bob.id}
2828
expect(flash[:notice]).to eq("You can't follow yourself silly!")
2929
end
3030

31-
it('#follow just once') do
31+
it '#follow just once' do
3232
post :follow, user_id: bob, :user => {:followee => mozart.id}
3333
expect(flash[:notice]).to eq("You're following #{mozart.username} now")
3434
post :follow, user_id: bob, :user => {:followee => mozart.id}
3535
expect(flash[:notice]).to eq("You're already following #{mozart.username}")
3636
end
3737

38-
it('#following?') do
38+
it '#following?' do
3939
get :following, user_id: bob
4040
response.should be_success
4141
end
4242

43-
it ('#followers') do
43+
it '#followers' do
4444
get :followers, user_id: bob
4545
response.should be_success
4646
end
4747

48-
it ('#unfollow') do
48+
it '#unfollow' do
4949
post :unfollow, user_id: bob, :user => {:followee => mozart.id}
5050
expect(flash[:notice]).to eq("You're no longer following #{mozart.username}")
5151
end

0 commit comments

Comments
 (0)