Skip to content

Commit

Permalink
lint a random file (#3847)
Browse files Browse the repository at this point in the history
  • Loading branch information
osc-bot authored Oct 7, 2024
1 parent 111e24d commit cfa871f
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# frozen_string_literal: true

require 'test_helper'

class MotdFormatterPlaintextTest < ActiveSupport::TestCase
include MotdFormatter
test "test when motd formatter_plaintext_valid" do

test 'test when motd formatter_plaintext_valid' do
path = "#{Rails.root}/test/fixtures/files/motd_valid"
motd_file = MotdFile.new(path)
formatted_motd = MotdFormatterPlaintext.new(motd_file)
Expand All @@ -12,23 +13,23 @@ class MotdFormatterPlaintextTest < ActiveSupport::TestCase
assert_equal expected_file, formatted_motd.content
end

test "test when motd_formatter_plaintext empty" do
test 'test when motd_formatter_plaintext empty' do
path = "#{Rails.root}/test/fixtures/files/motd_empty"
motd_file = MotdFile.new(path)
formatted_motd = MotdFormatterPlaintext.new(motd_file)

assert_equal '', formatted_motd.content
end

test "test when motd formatter_plaintext_missing" do
test 'test when motd formatter_plaintext_missing' do
path = "#{Rails.root}/test/fixtures/files/motd_missing"
motd_file = MotdFile.new(path)
formatted_motd = MotdFormatterPlaintext.new(motd_file)

assert_equal '', formatted_motd.content
end

test "test when motd formatter_plaintext_nil" do
test 'test when motd formatter_plaintext_nil' do
motd_file = nil
formatted_motd = MotdFormatterPlaintext.new(motd_file)

Expand Down

0 comments on commit cfa871f

Please sign in to comment.