moving back from spec/ -> test/

since various tooling keeps guessing we're using rspec
This commit is contained in:
phinze 2012-10-13 15:24:45 -05:00
parent 33bd190694
commit cd70474aa9
5 changed files with 9 additions and 5 deletions

4
.gitmodules vendored
View File

@ -1,3 +1,3 @@
[submodule "spec/support/homebrew"]
path = spec/support/homebrew
[submodule "test/support/homebrew"]
path = test/support/homebrew
url = https://github.com/mxcl/homebrew.git

View File

@ -1,7 +1,8 @@
require 'rake/testtask'
Rake::TestTask.new do |t|
t.pattern = "spec/*_test.rb"
t.pattern = "test/*_test.rb"
t.libs << 'test'
end
task :default => :test

View File

@ -1,4 +1,4 @@
require_relative 'spec_helper'
require 'test_helper'
describe Cask do
describe "load" do

View File

@ -9,7 +9,7 @@ lib_path = brew_cask_path.join('lib')
$:.push(lib_path)
# add vendored homebrew to load path
homebrew_path = brew_cask_path.join('spec', 'support', 'homebrew')
homebrew_path = brew_cask_path.join('test', 'support', 'homebrew')
$:.push(homebrew_path.join('Library', 'Homebrew'))
# require homebrew testing env
@ -24,6 +24,9 @@ require 'minitest/spec'
require 'minitest/autorun'
require 'purdytest'
# sometimes you need to mock
require 'mocha'
# our baby
require 'cask'