Skip to content

Commit

Permalink
use block-style test
Browse files Browse the repository at this point in the history
  • Loading branch information
jacknagel committed Mar 21, 2013
1 parent d361829 commit ec73b7b
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion appledoc20.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def install
prefix.install "Templates/"
end

def test
test do
system "#{bin}/appledoc", "--version"
end
end
2 changes: 1 addition & 1 deletion automake112.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def install
EOS
end

def test
test do
system "#{bin}/automake112", "--version"
end
end
2 changes: 1 addition & 1 deletion clojure14.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def caveats; <<-EOS.undent
EOS
end

def test
test do
system "#{bin}/clj", "-e", '(println "Hello World")'
end
end
2 changes: 1 addition & 1 deletion erlang-r13.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def install
manuals.new.brew { man.install Dir['man/*'] }
end

def test
test do
`erl -noshell -eval 'crypto:start().' -s init stop`

# This test takes some time to run, but per bug #120 should finish in
Expand Down
2 changes: 1 addition & 1 deletion erlang-r14.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def install
end
end

def test
test do
`#{bin}/erl -noshell -eval 'crypto:start().' -s init stop`

# This test takes some time to run, but per bug #120 should finish in
Expand Down
2 changes: 1 addition & 1 deletion erlang-r15.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def install
end
end

def test
test do
`#{bin}/erl -noshell -eval 'crypto:start().' -s init stop`

# This test takes some time to run, but per bug #120 should finish in
Expand Down
2 changes: 1 addition & 1 deletion erlang-r16.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def install
end
end

def test
test do
`#{bin}/erl -noshell -eval 'crypto:start().' -s init stop`

# This test takes some time to run, but per bug #120 should finish in
Expand Down
8 changes: 3 additions & 5 deletions libpng12.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ def install
libexec.install 'pngtest.png', '.libs/pngtest'
end

def test
mktemp do
system "#{libexec}/pngtest", "#{libexec}/pngtest.png"
system "/usr/bin/qlmanage", "-p", "pngout.png"
end
test do
system "#{libexec}/pngtest", "#{libexec}/pngtest.png"
system "/usr/bin/qlmanage", "-p", "pngout.png"
end
end
2 changes: 1 addition & 1 deletion python32.rb
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def caveats
return text
end

def test
test do
# Check if sqlite is ok, because we build with --enable-loadable-sqlite-extensions
# and it can occur that building sqlite silently fails if OSX's sqlite is used.
system "#{bin}/python#{VER}", "-c", "import sqlite3"
Expand Down

0 comments on commit ec73b7b

Please sign in to comment.