Skip to content

Commit ac4f738

Browse files
committed
Tidying thanks to rubocop
1 parent f7c79f0 commit ac4f738

2 files changed

Lines changed: 20 additions & 20 deletions

File tree

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
require 'test_helper'
22

33
class NewThreadFollowerTest < ActiveSupport::TestCase
4-
test "save succeeds with user and post" do
5-
new_thread_follower=NewThreadFollower.new
6-
new_thread_follower.user=users(:basic_user)
7-
new_thread_follower.post=posts(:question_one)
4+
test 'save succeeds with user and post' do
5+
new_thread_follower = NewThreadFollower.new
6+
new_thread_follower.user = users(:basic_user)
7+
new_thread_follower.post = posts(:question_one)
88
assert new_thread_follower.save
99
end
1010

11-
test "save fails without user" do
12-
new_thread_follower=NewThreadFollower.new
13-
new_thread_follower.post=posts(:question_one)
11+
test 'save fails without user' do
12+
new_thread_follower = NewThreadFollower.new
13+
new_thread_follower.post = posts(:question_one)
1414
assert_not new_thread_follower.save
1515
end
1616

17-
test "save fails without post" do
18-
new_thread_follower=NewThreadFollower.new
19-
new_thread_follower.user=users(:basic_user)
17+
test 'save fails without post' do
18+
new_thread_follower = NewThreadFollower.new
19+
new_thread_follower.user = users(:basic_user)
2020
assert_not new_thread_follower.save
2121
end
2222
end
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
require 'test_helper'
22

33
class ThreadFollowerTest < ActiveSupport::TestCase
4-
test "save succeeds with user and thread" do
5-
new_thread_follower=ThreadFollower.new
6-
new_thread_follower.user=users(:basic_user)
7-
new_thread_follower.comment_thread=comment_threads(:normal)
4+
test 'save succeeds with user and thread' do
5+
new_thread_follower = ThreadFollower.new
6+
new_thread_follower.user = users(:basic_user)
7+
new_thread_follower.comment_thread = comment_threads(:normal)
88
assert new_thread_follower.save
99
end
1010

11-
test "save fails without user" do
12-
new_thread_follower=ThreadFollower.new
13-
new_thread_follower.comment_thread=comment_threads(:normal)
11+
test 'save fails without user' do
12+
new_thread_follower = ThreadFollower.new
13+
new_thread_follower.comment_thread = comment_threads(:normal)
1414
assert_not new_thread_follower.save
1515
end
1616

17-
test "save fails without thread" do
18-
new_thread_follower=ThreadFollower.new
19-
new_thread_follower.user=users(:basic_user)
17+
test 'save fails without thread' do
18+
new_thread_follower = ThreadFollower.new
19+
new_thread_follower.user = users(:basic_user)
2020
assert_not new_thread_follower.save
2121
end
2222
end

0 commit comments

Comments
 (0)