Displaying 3 results from an estimated 3 matches for "swombat".
Did you mean:
wombat
2010 Oct 20
7
How can I render a template outside of a controller in Rails 3?
Hi All,
I can''t seem to render a template outside of a controller in my Rails 3
application. The googling I''ve done has been helpful, and I eventually found
some useful info at
http://www.swombat.com/rails-rendering-templates-outside-of-a-contro.
However, this seems to be broken in Rails 3. Does anyone have any ideas how
I can fix this method or perhaps know of a better approach?
My method:
def render_erb(template_path, params)
view = ActionView::Base.new(ActionController::Ba...
2007 Oct 19
27
Assumption tests
...s, specs, and stories.
Obviously this could have dire consequences that I haven''t thought
of, hence why I''d like to hear what other people''s opinions are about
this. I''ve discussed some aspects of this briefly on #rspec with
David (chelimsky) (I''m swombat), but would love more opinions about
it, and it seems that all the fun stuff happens on the mailing list :-)
Thanks for any feedback,
Daniel
http://www.inter-sections.net/
(swombat on freenode#rspec)
2009 Jul 09
3
before(:all) and nested contexts
On Thu, Jul 9, 2009 at 5:40 AM, Daniel Tenner<daniel.rspec at tenner.org> wrote:
> Hi all,
> Like everyone (?), I use nested contexts to keep my specs well organised and
> tidy.
> However, I have a problem. I have various sets of specs that needs to
> perform very time-expensive operations to set up the fixtures that will be
> examined in the tests. Two specific examples: