DEV: Correct spec for theme export change

This commit is contained in:
David Taylor 2019-01-31 17:52:03 +00:00
parent c0b1a1a914
commit 886ba9dff9
1 changed files with 4 additions and 4 deletions

View File

@ -50,15 +50,15 @@ describe ThemeStore::TgzExporter do
filename = exporter.package_filename
FileUtils.cp(filename, dir)
exporter.cleanup!
"#{dir}/discourse-header-icons-theme.tar.gz"
"#{dir}/discourse-header-icons.tar.gz"
end
it "exports the theme correctly" do
package
Dir.chdir("#{dir}") do
`tar -xzf discourse-header-icons-theme.tar.gz`
`tar -xzf discourse-header-icons.tar.gz`
end
Dir.chdir("#{dir}/discourse-header-icons-theme") do
Dir.chdir("#{dir}/discourse-header-icons") do
folders = Dir.glob("**/*").reject { |f| File.file?(f) }
expect(folders).to contain_exactly("assets", "common", "locales", "mobile")
@ -115,7 +115,7 @@ describe ThemeStore::TgzExporter do
exporter = ThemeStore::TgzExporter.new(theme)
filename = exporter.package_filename
exporter.cleanup!
expect(filename).to end_with "/discourse-header-icons-theme.tar.gz"
expect(filename).to end_with "/discourse-header-icons.tar.gz"
end
end