No commit activity in last 3 years
No release in over 3 years
Remarkable RSpec matchers for devise_invitable models. It should be used with remarkable_devise.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0.0
~> 1.5.1
>= 0
>= 0
~> 2.1.0

Runtime

~> 3.0.0
~> 3.0.0
~> 2.1.0
 Project Readme

Remarkable devise_invitable

Remarkable RSpec matchers for devise_invitable models. It should be used with remarkable_devise.

Install

Add to your Gemfile:

gem "remarkable_activerecord"
gem "remarkable_devise"
gem "remarkable_devise_invitable"

Add the require after the remarkabe/devise line in your spec_helper.rb:

require "remarkable/active_record"
require "remarkable/devise"
require "remarkable/devise/invitable"

Usage

Suppose that you have User model, wich should be an invitable. Specs should look like this:

# spec/models/user_spec.rb
describe User do
  it { should be_an_invitable(:invite_for => 2.weeks) }
end

Documentation

Coming soon

See also