Permalink
Browse files

Replace RSpec with minitest

  • Loading branch information...
1 parent 81eb6fc commit b4a45622b035d7743c5143e2a3f8d9c0e90b6fb7 @txus committed Apr 8, 2011
Showing with 30 additions and 30 deletions.
  1. +8 −17 Gemfile.lock
  2. +13 −11 Rakefile
  3. +3 −2 brainfuck.gemspec
  4. +6 −0 test/test_helper.rb
View
@@ -1,26 +1,19 @@
PATH
remote: .
specs:
- brainfuck (0.1.0)
+ brainfuck (0.1.2)
highline
parslet
GEM
remote: http://rubygems.org/
specs:
- blankslate (2.1.2.3)
- diff-lcs (1.1.2)
+ blankslate (2.1.2.4)
highline (1.6.1)
- parslet (1.0.0)
- blankslate (~> 2.1.2.3)
- rspec (2.2.0)
- rspec-core (~> 2.2)
- rspec-expectations (~> 2.2)
- rspec-mocks (~> 2.2)
- rspec-core (2.2.1)
- rspec-expectations (2.2.0)
- diff-lcs (~> 1.1.2)
- rspec-mocks (2.2.0)
+ minitest (2.0.2)
+ mocha (0.9.12)
+ parslet (1.2.0)
+ blankslate (~> 2.0)
simplecov (0.3.7)
simplecov-html (>= 0.3.7)
simplecov-html (0.3.9)
@@ -31,8 +24,6 @@ PLATFORMS
DEPENDENCIES
brainfuck!
- bundler
- highline
- parslet
- rspec
+ minitest
+ mocha
simplecov
View
@@ -1,17 +1,19 @@
require 'bundler'
Bundler::GemHelper.install_tasks
-# require 'simplecov'
-# SimpleCov.start do
-# add_group "Lib", 'lib'
-# end
+require 'rake/testtask'
+Rake::TestTask.new do |t|
+ t.libs << "test"
+ t.test_files = FileList['test/**/*_test.rb'] - FileList['test/acceptance/**/*_test.rb']
+ t.verbose = true
+end
-require 'rspec/core'
-require 'rspec/core/rake_task'
-RSpec::Core::RakeTask.new(:spec) do |spec|
- spec.pattern = FileList['spec/**/*_spec.rb']
+require 'rake/testtask'
+desc 'Run acceptance tests (Scheme programs inside examples/ directory)'
+Rake::TestTask.new :acceptance do |t|
+ t.libs << "test"
+ t.test_files = FileList['test/acceptance/**/*_test.rb']
+ t.verbose = true
end
-task
-task :default => :spec
-task :test => [:spec]
+task :default => [:test, :acceptance]
View
@@ -16,8 +16,9 @@ Gem::Specification.new do |s|
s.add_runtime_dependency "highline"
s.add_runtime_dependency "parslet"
- s.add_development_dependency "rspec"
- s.add_development_dependency "bundler"
+
+ s.add_development_dependency "minitest"
+ s.add_development_dependency "mocha"
s.add_development_dependency "simplecov"
s.files = `git ls-files`.split("\n")
View
@@ -0,0 +1,6 @@
+gem 'minitest'
+require 'minitest/unit'
+require 'minitest/autorun'
+require 'mocha'
+
+require 'brainfuck'

0 comments on commit b4a4562

Please sign in to comment.