Skip to content

ar2em1s/rspec_pretty_status

Repository files navigation

RspecPrettyStatus

Gem Version

Pretty controller specs with rails statuses in pure rspec.

Installation

Add this line to your application's Gemfile:

gem 'rspec_pretty_status'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install rspec_pretty_status

Then include in RSpec:

require 'rspec_pretty_status'

RSpec.configure do |config|
  config.include RSpecPrettyStatus
end

Usage

In controller specs:

it { expect(response).to have_http_status(:ok) }

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/Ar2emis/rspec_pretty_status.

License

The gem is available as open source under the terms of the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published