Commit 0370274

mo khan <mo@mokhan.ca>
2021-02-05 21:33:06
chore: switch to minitest
1 parent 630282a
bin/setup
@@ -1,4 +1,6 @@
 #!/bin/sh
 set -e
 
+cd "$(dirname "$0")/.."
+
 bundle install
bin/test
@@ -1,7 +1,6 @@
-#!/usr/bin/env ruby
+#!/bin/sh
+set -e
 
-$LOAD_PATH.unshift(File.expand_path(File.join(__dir__, '../lib')))
+cd "$(dirname "$0")/.."
 
-require 'jive'
-
-exit Jive.run([%w[bundle exec rspec]])
+bundle exec ruby -Ilib:test test/**/*_test.rb
spec/jive_spec.rb
@@ -1,3 +0,0 @@
-RSpec.describe Jive do
-  it { expect(Jive::VERSION).not_to be nil }
-end
spec/spec_helper.rb
@@ -1,14 +0,0 @@
-require "bundler/setup"
-require "jive"
-
-RSpec.configure do |config|
-  # Enable flags like --only-failures and --next-failure
-  config.example_status_persistence_file_path = ".rspec_status"
-
-  # Disable RSpec exposing methods globally on `Module` and `main`
-  config.disable_monkey_patching!
-
-  config.expect_with :rspec do |c|
-    c.syntax = :expect
-  end
-end
test/unit/jive_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class JiveTest < Minitest::Test
+  def test_version
+    refute_nil Jive::VERSION
+  end
+end
test/test_helper.rb
@@ -0,0 +1,3 @@
+require 'minitest'
+require 'minitest/autorun'
+require 'jive'
.gitignore
@@ -4,8 +4,4 @@
 /coverage/
 /doc/
 /pkg/
-/spec/reports/
 /tmp/
-
-# rspec failure tracking
-.rspec_status
Gemfile.lock
@@ -7,21 +7,8 @@ PATH
 GEM
   remote: https://rubygems.org/
   specs:
-    diff-lcs (1.4.4)
+    minitest (5.14.3)
     rake (10.5.0)
-    rspec (3.10.0)
-      rspec-core (~> 3.10.0)
-      rspec-expectations (~> 3.10.0)
-      rspec-mocks (~> 3.10.0)
-    rspec-core (3.10.1)
-      rspec-support (~> 3.10.0)
-    rspec-expectations (3.10.1)
-      diff-lcs (>= 1.2.0, < 2.0)
-      rspec-support (~> 3.10.0)
-    rspec-mocks (3.10.2)
-      diff-lcs (>= 1.2.0, < 2.0)
-      rspec-support (~> 3.10.0)
-    rspec-support (3.10.2)
     thor (1.1.0)
 
 PLATFORMS
@@ -29,8 +16,8 @@ PLATFORMS
 
 DEPENDENCIES
   jive!
+  minitest (~> 5.14)
   rake (~> 10.0)
-  rspec (~> 3.0)
 
 BUNDLED WITH
    2.2.8
jive.gemspec
@@ -26,5 +26,5 @@ Gem::Specification.new do |spec|
 
   spec.add_dependency "thor", "~> 1.1"
   spec.add_development_dependency "rake", "~> 10.0"
-  spec.add_development_dependency "rspec", "~> 3.0"
+  spec.add_development_dependency "minitest", "~> 5.14"
 end
Rakefile
@@ -1,6 +1,1 @@
 require "bundler/gem_tasks"
-require "rspec/core/rake_task"
-
-RSpec::Core::RakeTask.new(:spec)
-
-task :default => :spec
README.md
@@ -1,36 +1,32 @@
 # Jive
 
-Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/jive`. To experiment with that code, run `bin/console` for an interactive prompt.
+Hi!
 
 ## Installation
 
-Add this line to your application's Gemfile:
-
-```ruby
-gem 'jive'
-```
-
-And then execute:
-
-    $ bundle
-
-Or install it yourself as:
-
     $ gem install jive
 
 ## Usage
 
-TODO: Write usage instructions here
+    $ jive --help
+
 
 ## Development
 
-After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
+After checking out the repo, run `bin/setup` to install dependencies.
+Then, run `./bin/test` to run the tests.
+You can also run `bin/console` for an interactive prompt that will allow you to experiment.
 
-To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
+To install this gem onto your local machine, run `bundle exec rake install`.
+To release a new version, update the version number in `version.rb`,
+and then run `bundle exec rake release`,
+which will create a git tag for the version,
+push git commits and tags, and push the `.gem`
+file to [rubygems.org](https://rubygems.org).
 
 ## Contributing
 
-Bug reports and pull requests are welcome on GitHub at https://github.com/mokhan/jive.
+Bug reports and pull requests are welcome on GitHub at https://github.com/xlgmokha/jive.
 
 ## License