Sha256: 90cfbdc9195b9a759348b6410d760f02c0478adeb2bf922415285bc200b18771

Contents?: true

Size: 1.76 KB

Versions: 1

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' }.to eql: 'foo' # => 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

1 entries across 1 versions & 1 rubygems

Version Path
expect-0.0.3 README.md