Sha256: 254fa64413867b09e4b5f72b91d44fce4ec88f016d26c386783fb78e577138ed
Contents?: true
Size: 1.77 KB
Versions: 5
Compression:
Stored size: 1.77 KB
Contents
# Expect [![Build Status](https://travis-ci.org/fixrb/expect.svg?branch=master)](https://travis-ci.org/fixrb/expect) [![Dependency Status](https://gemnasium.com/fixrb/expect.svg)](https://gemnasium.com/fixrb/expect) [![Gem Version](http://img.shields.io/gem/v/expect.svg)](https://rubygems.org/gems/expect) [![Inline docs](http://inch-ci.org/github/fixrb/expect.svg?branch=master)](http://inch-ci.org/github/fixrb/expect) [![Documentation](http://img.shields.io/:yard-docs-38c800.svg)](http://rubydoc.info/gems/expect/frames) > Expectation library with some built-in matchers for Ruby. ## Contact * Home page: https://github.com/fixrb/expect * Bugs/issues: https://github.com/fixrb/expect/issues * Support: https://stackoverflow.com/questions/tagged/expect ## Rubies * [MRI](https://www.ruby-lang.org/) * [Rubinius](http://rubini.us/) * [JRuby](http://jruby.org/) ## Installation Add this line to your application's Gemfile: ```ruby gem 'expect' ``` And then execute: $ bundle Or install it yourself as: $ gem install expect ## Usage **Equivalence** expectation: ```ruby Expect.this { 'foo' }.not_to eql: 'bar' # => true ``` **Identity** expectation: ```ruby Expect.this { :foo }.to equal: :foo # => true ``` **Regular expressions** expectation: ```ruby Expect.this { 'foo' }.to match: /^foo$/ # => true ``` **Expecting errors** expectation: ```ruby Expect.this { Boom }.to raise_exception: NameError # => true ``` ## Versioning __Expect__ follows [Semantic Versioning 2.0](http://semver.org/). ## Contributing 1. [Fork it](https://github.com/fixrb/expect/fork) 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 a new Pull Request
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
expect-0.0.8 | README.md |
expect-0.0.7 | README.md |
expect-0.0.6 | README.md |
expect-0.0.5 | README.md |
expect-0.0.4 | README.md |