aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorDominyk Tiller2015-02-04 18:09:55 +0000
committerMike McQuaid2015-02-05 15:16:14 +0000
commit180bc0fcb5d02ac3ef8930394a6306f8ba9e9135 (patch)
treece4734a5016fe6fc5d17ec32ac11a7d9444c5ecd /Library
parent3e4a7f24a26d46b57ef9babaefa145c77a8149b8 (diff)
downloadhomebrew-180bc0fcb5d02ac3ef8930394a6306f8ba9e9135.tar.bz2
blazeblogger: add test
Adds a test to the blazeblogger formula, fixes strict audit failures. Closes #36532. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/blazeblogger.rb22
1 files changed, 14 insertions, 8 deletions
diff --git a/Library/Formula/blazeblogger.rb b/Library/Formula/blazeblogger.rb
index 537462c42..2644bd939 100644
--- a/Library/Formula/blazeblogger.rb
+++ b/Library/Formula/blazeblogger.rb
@@ -1,13 +1,19 @@
-require 'formula'
-
class Blazeblogger < Formula
- homepage 'http://blaze.blackened.cz/'
- url 'https://blazeblogger.googlecode.com/files/blazeblogger-1.2.0.tar.gz'
- sha1 '280894fca6594d0c0df925aa0a16b9116ee19f17'
+ homepage "http://blaze.blackened.cz/"
+ url "https://blazeblogger.googlecode.com/files/blazeblogger-1.2.0.tar.gz"
+ sha1 "280894fca6594d0c0df925aa0a16b9116ee19f17"
def install
- system "make", "prefix=#{prefix}",
- "compdir=#{prefix}",
- "install"
+ # https://code.google.com/p/blazeblogger/issues/detail?id=51
+ ENV.deparallelize
+ system "make", "prefix=#{prefix}", "compdir=#{prefix}", "install"
+ end
+
+ test do
+ system bin/"blaze", "init"
+ system bin/"blaze", "config", "blog.title", "Homebrew!"
+ system bin/"blaze", "make"
+ assert File.exist? "default.css"
+ assert File.read(".blaze/config").include?("Homebrew!")
end
end