evansagge/mongoid-rspec — pull request #79 by dwbutler (2012-08-14 16:04:04+00:00)
Title: Support for matching field aliases

This threw me for a loop at first. I have a Mongoid document with a field defined like so:

```ruby
field :s, as: :status
```

The following spec fails:

```ruby
it { should have_field(:status) }
```

It turns out there wasn't a way to directly test for the alias. So I added support for it.

```ruby
it { should have_field(:s).with_alias(:status) }
```