Sha256: 7bc9094c54f84b696ee3471113da3a016a182310464553a84b1f5c2b80e78c8a

Contents?: true

Size: 1.76 KB

Versions: 2

Compression:

Stored size: 1.76 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 RaiseException: 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

2 entries across 2 versions & 1 rubygems

Version Path
expect-0.0.10 README.md
expect-0.0.9 README.md