Commit Graph

9 Commits

Author SHA1 Message Date
Elliot Winkler afa6a7b666 Update RSpec test style across docs
Instead of using

    describe Foo do
      # ...
    end

use

    RSpec.describe Foo, type: :model do
      # ...
    end

instead. This is not exactly official, as the former style still works,
but the latter style is highly suggested in RSpec documentation and the
like, so this is what people are used to.

[ci skip]
2016-06-15 18:02:07 -06:00
Elliot Winkler 142366ef16 Refer to Minitest in docs over Test::Unit
Minitest has been used instead of Test::Unit for quite some time now,
let's get with the times.

[ci skip]
2015-09-30 13:18:23 -06:00
Mauro George 9268b4940f set_flash.now works only if called before any other qualifier
In the 3.0.0 `set_flash[:foo].now` is no longer a valid syntax, only the
`set_flash.now[:foo]` is valid[1].

Since this can create a false positive when people updating, we will raise a
exception to make the things more explicit.

[1]: https://github.com/thoughtbot/shoulda-matchers/pull/752
2015-09-23 15:09:01 -06:00
Elliot Winkler 535fe05be8 Consolidate set_session and set_flash APIs
* Refactor so they both use SetSessionOrFlashMatcher internally
* Remove `set_session['key']` in favor of `set_session('key')`
* `set_flash['key'].to(nil)` no longer works if set_flash has never been
  set
2015-02-09 10:52:51 -07:00
Elliot Winkler 801f2c7c1e Remove set_the_flash in favor of set_flash 2015-02-09 10:52:51 -07:00
Elliot Winkler a4045a1f9b Remove Rails 3.x, Ruby 1.9.2, Ruby 1.9.3
Ruby 1.9.3 will be end-of-lifed on February 23, 2015. We might as well
remove support for it now.
2015-02-09 10:52:22 -07:00
Elliot Winkler 542f715d5a Documentation updates
[ci skip]
2014-12-25 01:13:30 -05:00
Elliot Winkler c8fb8022b1 Deprecate set_the_flash in favor of set_flash 2014-11-21 14:24:00 -07:00
Elliot Winkler 0eb10915db set_the_flash => set_flash 2014-11-21 11:36:27 -07:00