Add withTemplateFor(...) to WebSpec
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_== ...<span>Hello World!</span>...
}
Leave a comment
on 2011-03-03 16:23 *
By dchenbecker
Milestone changed from 2.3-RC1 to 3.0-M1
Status changed from Accepted to Test
Work remaining changed from 2.0 to 1.0
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.
on 2011-05-24 22:41 *
By dchenbecker
Status changed from Test to Fixed
Work remaining changed from 1.0 to 0.0
(In revision:63a50558864a3d70fa1de0b3cf6148122a3e07ca) Added withTemplateFor method to WebSpec
Closes #904
Also added example usage to WebSpecSpec
Branch: master
Closes #904
Also added example usage to WebSpecSpec
Branch: master
on 2011-05-24 22:42 *
By dchenbecker
=====================================================
Build succeeded! Duration = 8522 seconds
=====================================================
I need a faster machine!
Build succeeded! Duration = 8522 seconds
=====================================================
I need a faster machine!