Commit Graph

13 Commits

Author SHA1 Message Date
Luciano Sousa 447816cf10 update rspec syntax to the new one 2016-06-09 18:49:42 -03:00
Michael Dao 1fa61dc331 Removed many more RSpec deprecations 2015-03-09 15:23:29 -06:00
Andrew Haines 50a3435acb Store helper proxies instead of raw view contexts
Closes #436.
2013-01-24 00:23:39 +00:00
Andrew Haines a039671202 Add support for decoupled specs
Closes #424
2013-01-19 21:55:46 +00:00
Steve Klabnik 1dcbe68ee8 Totally change test integration.
We no longer need to do specific things before tests run. The
view_context now loads up appropriate things if they don't exist.

I ended up getting rid of two spec files; one tested things that
were very simple, but since we're not mocking Rails anymore, they're
much harder to test. The second was the stuff that I removed. :)
2012-08-28 22:42:38 -07:00
Istvan Hoka 8e505565f9 Fixed view_context priming. Fixes #244, relates to 057ab4e8.
Fix in 057ab4e8 resulted in a "NameError: undefined local variable or method `view_context' for Draper::ViewContext:Module".
2012-08-14 14:18:14 +03:00
Ryan Fitzgerald 75a8204148 Remove unnecessary view_context setup 2012-07-18 21:50:26 -04:00
Steve Klabnik 0b03d9c21e Monkeypatch ActionController::Base.
We need to be able to let draper get a copy of the view_context
no matter what happens. AC::Base doesn't really let us do that. So
we have to monkeypatch.

This was originally suggested in
https://github.com/jcasimir/draper/issues/124#issuecomment-6954291
by @rf-.

It appears to be the cleanest way to take care of this problem, and
shouldn't affect any other things, since we keep the exact same
semantics of view_context.

Theoretically:

Fixes #124
Fixes #109
2012-07-17 09:40:52 -04:00
Ryan Cook aab53c1d5f ensure availability of a method to create a view context while testing 2012-05-18 00:04:25 -06:00
Vasiliy Ermolovich d59aef0067 remove 'interpreted as grouped expression' warning 2012-03-29 09:06:37 +03:00
Steve Klabnik 56ce55addb Zomg removing trailing whitespace. 2012-02-13 10:24:31 -05:00
Jeff Casimir 173c705422 Refactoring spec organization 2011-10-28 20:22:06 -04:00
Justin Ko c1ff7a4f1a Keep lib spec files in draper directory. Remove unneeded require's. 2011-10-24 11:52:28 -06:00