ActiveFedora library to allow use of RELS-INT to track RDF assertions about datastreams via a similar api to the ActiveFedora RELS-EXT implementation
Adds a new assertion to minitest for checking the contents of a collection, ignoring element order.
Hate writing assertions? Need a little behavior-driven love in your tests? Then matchy is for you.
Easily make assertions about the contents of your `let` blocks
A collection of useful assertions.
Switches lets you turn on and off parts of your code from the commandline. There's a defaults.yml and a current.yml in the background. For example: app/models/user.rb after_create :subscribe_email if Switches.campaign_monitor? >> Switches.campaign_monitor? # => false $ rake switches:on[campaign_monitor] >> Switches.campaign_monitor? # => true $ rake switches:reset # goes back to default.yml $ rake switches:diff # shows diff b/w current.yml and default.yml $ rake s:d # alias for switches:diff $ rake s:c # alias for switches:list_current etc. It's inspired by ActiveSupport's StringInquirer (e.g. Rails.development?) and traditional compile-time assertions.
Asserts for RSpec
Lightweight library that provides easy-to-use runtime assertions for Ruby
Call assert_difference with ActiveRecord_Relation objects, arrays or hashes.
Should provides a set of .NET extension methods for test assertions for AAA and BDD Style tests. It only provids assertions and as a result is Test runner agnositic. The assertions are a based on the xUnit.NET assertions.
A collection of assertion macros for testing MongoMapper with Riot
Handoff is a fluent interface for making Test::Unit assertions about delegation.
Goal is to provide custom, high quality and high level assertions for Ruby and Ruby on Rails
efficient assertions for ActiveRecord tests
ZenTest provides 4 different tools: zentest, unit_diff, autotest, and multiruby. ZenTest scans your target and unit-test code and writes your missing code based on simple naming rules, enabling XP at a much quicker pace. ZenTest only works with Ruby and Test::Unit. Nobody uses this tool anymore but it is the package namesake, so it stays. unit_diff is a command-line filter to diff expected results from actual results and allow you to quickly see exactly what is wrong. Do note that minitest 2.2+ provides an enhanced assert_equal obviating the need for unit_diff autotest is a continous testing facility meant to be used during development. As soon as you save a file, autotest will run the corresponding dependent tests. multiruby runs anything you want on multiple versions of ruby. Great for compatibility checking! Use multiruby_setup to manage your installed versions.
assert_statistically is an addition to Unit::Test::Assertions that functions like assert_block. You can set a number of times to run the block, a minimum and maximum number of times that the block must pass, a message for failure, and a Proc to run before and after each run of the block.
There's a few blocks of code I had to write in tests over and over again. To save time and effort, I made them assertions. These are the ones I came up with so far.
Additional assertions for seattlerb's popular MiniTest framework. Mostly aimed around improving compatibility with test-unit.
Allows for compact checks (Python style)
A library of cucumber step definitions, which allow you to use a human to assert conditions during acceptance tests. Some requirements are simple for a human to confirm, but are very difficult to assert using automation. Farmer allows us to include human confirmation into our normal testing flow. For example, we needed to verify that certain portions of an image were 'blacked out'.
"ruby/power_assert" integration for RSpec. No monkey patching exists.
TestRig supplies dynamic assertions and contextual failure messages
ZenTest provides 4 different tools: zentest, unit_diff, autotest, and multiruby. ZenTest scans your target and unit-test code and writes your missing code based on simple naming rules, enabling XP at a much quicker pace. ZenTest only works with Ruby and Test::Unit. Nobody uses this tool anymore but it is the package namesake, so it stays. unit_diff is a command-line filter to diff expected results from actual results and allow you to quickly see exactly what is wrong. Do note that minitest 2.2+ provides an enhanced assert_equal obviating the need for unit_diff autotest is a continous testing facility meant to be used during development. As soon as you save a file, autotest will run the corresponding dependent tests. multiruby runs anything you want on multiple versions of ruby. Great for compatibility checking! Use multiruby_setup to manage your installed versions.
The Google Sign-In API gives OAuth2 JSON Web Tokens (JWT) as response data upon user sign-in. A necessary step for a service provider to trust such a token is validatation. Accepting the token without validation would allow a malicious client to simply assert itself in your system. Google provides libraries in several languages (https://goo.gl/jkzS18) to accomplish this, as well as an API endpoint that can outsource the task to Google's own servers (thereby introducing an additional network round trip into every authentication step), but a Ruby implementation is missing. This gem fills that gap.
Extends mocha to allow detailed tracking and querying of stub and mock invocations. Allows test spies using the have_received rspec matcher and assert_received for Test::Unit. Extracted from the jferris-mocha fork.
Executes Serverspec assertions against stack compute resources
Assay defines assertions in the same way that Ruby defines exceptions. Each type of asserition, called an assay, is then a child of the base Assertion class, which itself is a subclass of the Exception class.
This gem adds an assert random assertion that will allow the testing of random sequences. This is handy for game development and anyone working with random numbers with out a way of testing them.
A few Rspec matchers for making assertions about set-like properties of Enumerables.
Assertions to validate an html document
Easy error logging and assertions..
Riot Assertion Macros for DataMapper
A method for very basic nested type assertions
Rails testing assertions for checking your html is generated correctly.
UnificationAssertion defines +assert_unifiable+ assertion to test if given two values are unifiable. I only made this gem because Soutaro hadn't pushed it to rubygems yet.
Assert that JSONable objects conform to a schema
Cucumber helper to run rake tasks in the current process, capturing properties to assert tests against
Parameter assertions for view templates
pry-byebug-power_assert shows Power Assert style inspection message when you run 'next' command of pry-byebug.
A place to stash Test::Unit assertions I've found handy. Use at your own risk.
Contains core classes and interfaces for building event logger implementations. Also includes helper classes for incorporating assertions about event logging into unit and functional test code.
BigBro provides view helpers to generate Analytics code (with the noscript counterpart), test helpers to assert your page contains the tracking code and a configuration method to set your GA account from environment.rb
Doctest for markdown with comment-based assertions. Python/JavaScript/Ruby/PHP test runners and hackmd.io integration.
#TestsEx (Sharp Tests Extensions) is a set of extensible extensions. The main target is write short assertions where the Visual Studio IDE intellisense is your guide. #TestsEx can be used with NUnit, MsTests, xUnit, MbUnit. Note: This is the framework-independent build only. For specific unit test framework builds, you may use one of the following gems: [sharptestsex-nunit, sharptestsex-xunit, sharptestsex-mstest]
Generate assert code from a result inside a unit or integration test. This is useful if you have code that you've spiked or eyeballed as 'working' and you'd like to produce some assertions, without editing the output of pretty-inspect manually or making it all up.
Check HTML validity without using an external web service
Asserts blocks, prints introspective failure messages.
Semantical helpers to test your URLs in Ruby
Image Capturing and assertion at element level, all you need is a single assert statement
testunitxml extends the Test::Unit framework with an assertion for testing well-formed XML documents.