aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_create.rb
diff options
context:
space:
mode:
authorMarkus Reiter2016-09-27 00:03:40 +0200
committerMarkus Reiter2016-09-27 00:15:56 +0200
commitd508b124a43f4d1fd5500e9b023dcf9a1b41fc6a (patch)
tree912e1ce8fd7ace5717c2a0dc08c8317e51ddf3dd /Library/Homebrew/test/test_create.rb
parentcd677cf3aed7a0aed91c0f3428091d0fe52c60e9 (diff)
downloadbrew-d508b124a43f4d1fd5500e9b023dcf9a1b41fc6a.tar.bz2
Rename/merge test files.
Diffstat (limited to 'Library/Homebrew/test/test_create.rb')
-rw-r--r--Library/Homebrew/test/test_create.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_create.rb b/Library/Homebrew/test/test_create.rb
new file mode 100644
index 000000000..b30e85547
--- /dev/null
+++ b/Library/Homebrew/test/test_create.rb
@@ -0,0 +1,12 @@
+require "helper/integration_command_test_case"
+
+class IntegrationCommandTestCreate < IntegrationCommandTestCase
+ def test_create
+ url = "file://#{File.expand_path("..", __FILE__)}/tarballs/testball-0.1.tbz"
+ cmd("create", url, "HOMEBREW_EDITOR" => "/bin/cat")
+
+ formula_file = CoreTap.new.formula_dir/"testball.rb"
+ assert formula_file.exist?, "The formula source should have been created"
+ assert_match %(sha256 "#{TESTBALL_SHA256}"), formula_file.read
+ end
+end