Project

testem

0.0
No commit activity in last 3 years
No release in over 3 years
Often used aliases for MiniTest::Spec.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0

Runtime

 Project Readme

⚠️ 💀 ⚠️ 💀 ⚠️

This gem is deprecated and is not maintained anymore¶ ↑

Please define those 4 +alias+es by yourself.

⚠️ 💀 ⚠️ 💀 ⚠️

Often used aliases for MiniTest::Spec.

Gem | Source | Documentation

Aliases often used MiniTest::Spec hooks to Rails-like hooks.

  • context is aliased to describe

  • test is aliased to it

  • setup is aliased to before

  • teardown is aliased to after

Installation¶ ↑

Add this line to your application’s Gemfile:

gem 'testem'

And then execute:

$ bundle

Or install it yourself as:

$ gem install testem

Usage¶ ↑

require 'minitest/autorun'
require 'testem'

class LockTest < Testem
  let(:lock) { Lock.new }

  setup do
    lock.aquire
  end

  teardown do
    lock.release
  end

  context "locked" do
    test "is locked" do
      assert lock.locked?
    end
  end
end

Test¶ ↑

rake test

Release¶ ↑

edit lib/testem.rb testem.gemspec
bundle exec rake release

Contributing¶ ↑

  1. Fork it

  2. Create your feature branch (‘git checkout -b my-new-feature`)

  3. Commit your changes (‘git commit -am ’Add some feature’‘)

  4. Push to the branch (‘git push origin my-new-feature`)

  5. Create new Pull Request