thoughtbot--shoulda-matchers/spec
Elliot Winkler 755b3142a5 Doublespeak: Only store original method once
If a method for a class is doubled more than once within the same test
run, the original implementation of that method will change from double
to double, even if the double is deactivated correctly. Say we have two
distinct tests that both double the same method. Here is how that method
will be overridden as it goes along:

    A) START: original method
    B) ACTIVATE (1st test): method is doubled
    C) DEACTIVATE (1st test): calls original method (A)
    D) ACTIVATE (2nd test): original method (C) stored; method is again
                            doubled
    E) DEACTIVATE (2nd test): calls original method (C)

With this commit, this changes to:

    A) START: original method
    B) ACTIVATE (1st test): method is doubled
    C) DEACTIVATE (1st test): calls original method (A)
    D) ACTIVATE (2nd test): original method not stored again; method is
                            again doubled
    E) DEACTIVATE (2nd test): calls original method (A)
2015-03-01 00:39:51 -07:00
..
acceptance Add support for Postgres 2015-02-12 16:01:00 -07:00
support Rewrite the tests for #permit 2015-02-28 23:41:01 -07:00
unit/shoulda/matchers Doublespeak: Only store original method once 2015-03-01 00:39:51 -07:00
warnings_spy Be better about looking for warnings on Travis 2014-12-16 20:30:05 -07:00
acceptance_spec_helper.rb Add support for Postgres 2015-02-12 16:01:00 -07:00
doublespeak_spec_helper.rb Make Doublespeak specs runnable without Rails 2015-02-28 23:41:28 -07:00
report_warnings.rb Remove all Ruby-emitted warnings 2014-07-18 18:00:08 -06:00
unit_spec_helper.rb Add support for Postgres 2015-02-12 16:01:00 -07:00
warnings_spy.rb Fail build if there are warnings 2015-02-09 10:48:49 -07:00