Add withTemplateFor(...) to WebSpec #904

Closed
dchenbecker opened this Issue Feb 20, 2011 · 4 comments

Projects

None yet

2 participants

@dchenbecker
Member

Per the discussion on http://groups.google.com/group/liftweb/browse_thread/thread/b8cbb8c20d2dd5c/5fd8108e3b54a775:


I was actually thinking that it would look like

"some test" withTemplateFor(request and/or String URL) in {
  templateResults => ... // We pass the resulting markup here, and S is initialized as well
}

So, for example

"must say hello" withTemplateFor("http://foo.com/helloWorld") in {
  _ must_== ...Hello World!...
}
Member

I'm going to have to defer this until we can scope LiftRules. The new WebSpecSpec example for withTemplateFor fails because other things in the webkit build have already marked boot as complete.

Member

(In [[r:63a50558864a3d70fa1de0b3cf6148122a3e07ca]]) Added withTemplateFor method to WebSpec

Closes #904

Also added example usage to WebSpecSpec

Branch: master

Member

Build succeeded! Duration = 8522 seconds

I need a faster machine!

@dchenbecker dchenbecker was assigned Mar 1, 2012
@etorreborre etorreborre pushed a commit to etorreborre/framework that referenced this issue Dec 3, 2014
@dchenbecker dchenbecker Added withTemplateFor method to WebSpec
Closes #904

Also added example usage to WebSpecSpec
63a5055
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment