Commit Graph

8 Commits

Author SHA1 Message Date
Bartek Bułat af7f3a6736 Fix failing specs re Rails 5.1 (#800)
* Fix failing specs re Rails 5.1

Because there is no hard constraint on Rails version, tests run against
the newest version available. Rails 5.1 removes `to_h` from unpermitted
parameters class. Using `empty?` is sufficient replacement.

* Fix Dummy app `posts#mail` action rendering

Rails 5.1 does not accept `:text` key for `render`.
2017-05-05 10:28:28 -05:00
Cliff Braton ff36bd81ad Add support for custom default controller configuration (#788)
* Add configure functionality to allow customizing the default.

* Add configuration module and tests.

* Add documentation to the README.md

* Skip tests that only fail when whole suite is ran.

* Fix the double leaking by re-writing the test that caused the issue.

* Clean up railtie - Exract out method, Remove unnecessary compatibility.

* Add new functionality to the dummy app to increase test coverage.
2017-03-31 09:05:15 -05:00
Andrew Haines afa97bb401 Add decorates_assigned method to controllers 2013-02-07 01:00:48 +00:00
Andrew Haines fa2d5274a6 More integration specs 2013-01-16 16:30:53 +00:00
Andrew Haines c6f8aaa2b2 Remove `allows`, `denies` and `denies_all` from Decorator
Automatic delegation of methods is now achieved with `delegate_all`,
which includes the new AutomaticDelegation module.

Manual delegation is achieved using the standard Active Support
`delegate` method, which is enhanced so that `to: :source` is the
default.
2013-01-14 03:57:47 +00:00
Andrew Haines cfbc3888e9 Add mailer specs
Closes #316
2012-11-13 20:32:29 +00:00
Andrew Haines e1214d97b6 Remove .decorates method 2012-10-31 17:55:38 +00:00
Steve Klabnik 6b5b0a77ee Added first integration test
This test tests the following Draper features:

1) finders
2) decorates
3) using a decorated method

It also is the first test that verifies that the whole Cucumber setup
actually works properly.
2012-10-19 14:12:27 -03:00