Skip to content

Commit

Permalink
* Fix test/unit tests
Browse files Browse the repository at this point in the history
* Add bundler
  • Loading branch information
smtlaissezfaire committed Nov 14, 2012
1 parent aae3b0a commit f42b1e9
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ pkg
Gemfile.lock
.rbenv-version
docs
pkg
fakefs.gemspec
37 changes: 37 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
GEM
remote: http://rubygems.org/
specs:
diff-lcs (1.1.3)
git (1.2.5)
jeweler (1.8.4)
bundler (~> 1.0)
git (>= 1.2.5)
rake
rdoc
json (1.7.5)
rake (10.0.0)
rdiscount (1.6.8)
rdoc (3.12)
json (~> 1.4)
rspec (2.12.0)
rspec-core (~> 2.12.0)
rspec-expectations (~> 2.12.0)
rspec-mocks (~> 2.12.0)
rspec-core (2.12.0)
rspec-expectations (2.12.0)
diff-lcs (~> 1.1.3)
rspec-mocks (2.12.0)
sdoc (0.3.19)
json (>= 1.1.3)
rdoc (~> 3.10)
sdoc-helpers (0.1.4)
sdoc (~> 0.2)

PLATFORMS
ruby

DEPENDENCIES
jeweler
rdiscount
rspec
sdoc-helpers
23 changes: 16 additions & 7 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
$LOAD_PATH.unshift File.join(File.dirname(__FILE__))
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), 'test')

desc "Run tests"
task :test do
Dir['test/**/*_test.rb'].each { |file| require file }
require "bundler/setup"

require 'rake/testtask'

Rake::TestTask.new do |t|
t.libs << "test"
t.test_files = FileList['test/**/*test.rb']
t.verbose = true
end

task :default => [:test, :spec]
begin
require 'rspec/core/rake_task'
desc "Run specs"
RSpec::Core::RakeTask.new
rescue LoadError
puts "Spec task can't be loaded. `gem install rspec`"
end

require 'rspec/core/rake_task'
desc "Run specs"
RSpec::Core::RakeTask.new
task :default => [:test, :spec]

begin
require 'jeweler'
Expand Down

0 comments on commit f42b1e9

Please sign in to comment.