No release in over a year
Pretty response status as in rspec-rails
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.7.2
~> 0.14.0
~> 3.0
~> 1.14.0

Runtime

>= 0
 Project Readme

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.