Skip to content

Commit

Permalink
Indentation changed
Browse files Browse the repository at this point in the history
  • Loading branch information
namangupta01 committed Jul 12, 2018
1 parent 25fc30d commit 0e11842
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions test/unit/helpers/application_helper_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,34 @@

class ApplicationHelperTest < ActionView::TestCase

test 'should give filtered comment body' do
f = File.open('test/incoming_test_emails/gmail/final_parsed_comment.txt', 'r')
filtered_body = filtered_comment_body(f.read)
f.close()
f = File.open('test/incoming_test_emails/gmail/filtered_comment.txt', 'r')
assert_equal filtered_body, f.read
f.close()
end
test 'should give filtered comment body' do
f = File.open('test/incoming_test_emails/gmail/final_parsed_comment.txt', 'r')
filtered_body = filtered_comment_body(f.read)
f.close()
f = File.open('test/incoming_test_emails/gmail/filtered_comment.txt', 'r')
assert_equal filtered_body, f.read
f.close()
end

test 'should give trimmed content of comment' do
f = File.open('test/incoming_test_emails/gmail/final_parsed_comment.txt', 'r')
trimmed_content = trimmed_body(f.read)
f.close()
f = File.open('test/incoming_test_emails/gmail/trimmed_content.txt', 'r')
assert_equal trimmed_content, f.read
f.close()
end
test 'should give trimmed content of comment' do
f = File.open('test/incoming_test_emails/gmail/final_parsed_comment.txt', 'r')
trimmed_content = trimmed_body(f.read)
f.close()
f = File.open('test/incoming_test_emails/gmail/trimmed_content.txt', 'r')
assert_equal trimmed_content, f.read
f.close()
end

test 'should return true if contain trimmed content' do
f = File.open('test/incoming_test_emails/gmail/final_parsed_comment.txt', 'r')
contain_trimmed_body = contain_trimmed_body?(f.read)
assert_equal contain_trimmed_body, true
test 'should return true if contain trimmed content' do
f = File.open('test/incoming_test_emails/gmail/final_parsed_comment.txt', 'r')
contain_trimmed_body = contain_trimmed_body?(f.read)
assert_equal contain_trimmed_body, true
f.close()
end
end

test 'should return false if there is no trimmed content' do
contain_trimmed_body = contain_trimmed_body?("Without trimmed content")
assert_equal contain_trimmed_body, false
end
test 'should return false if there is no trimmed content' do
contain_trimmed_body = contain_trimmed_body?("Without trimmed content")
assert_equal contain_trimmed_body, false
end

end

0 comments on commit 0e11842

Please sign in to comment.