Socket
Book a DemoInstallSign in
Socket

matchbox

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

matchbox

1.0.2
bundlerRubygems
Version published
Maintainers
1
Created
Source

matchbox - use RSpec and Shoulda matchers in Test::Unit StillMaintained Status Build Status

Matchbox allows you to use RSpec and Shoulda matchers as regular, old Test::Unit assertions.

Installation

Without bundler:

gem install matchbox

With bundler:

gem 'matchbox'

Usage

Just include the RSpec matchers into the TestCase and they can be used as seen below. This example uses methods found in shoulda-matchers.

class PostTest < Test::Unit::TestCase
  def test_active_record_relations
    post = Post.new
    assert_accepts belong_to(:topic), post
  end
end

Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Add tests for it. This is important so I don't break it in a future version unintentionally.
  • Commit, but do not mess with the Rakefile. If you want to have your own version, that is fine but bump the version in a commit by itself in another branch so I can ignore it when I pull.
  • Send me a pull request. Bonus points for git flow feature branches.

Resources

License

Matchbox is licensed under the MIT License. See LICENSE for details.

FAQs

Package last updated on 19 Sep 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.