Skip to content

Commit

Permalink
Format update.
Browse files Browse the repository at this point in the history
  • Loading branch information
euler-room committed Jan 15, 2025
1 parent 332777c commit 11f845b
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions apps/dashboard/test/models/project_manifest_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@

class ProjectManifestTest < ActiveSupport::TestCase

test 'ProjectManifest writes files entries' do
opts = { files: ['file1', 'file2'] }
test 'ProjectManifest writes files entries' do
opts = { files: ['file1', 'file2'] }

valid_manifest = <<~HEREDOC
---
files:
- file1
- file2
HEREDOC
valid_manifest = <<~HEREDOC
---
files:
- file1
- file2
HEREDOC

manifest = ProjectManifest.new(opts)
manifest = ProjectManifest.new(opts)

Dir.mktmpdir do |dir|
path = dir << '/manifest.yml'
manifest.save(path)
Dir.mktmpdir do |dir|
path = dir << '/manifest.yml'
manifest.save(path)

assert_equal valid_manifest, File.read(path)
assert_equal valid_manifest, File.read(path)
end
end
end
end

0 comments on commit 11f845b

Please sign in to comment.