Hi, Ruby web apps can be tested easily with Rack::Test like on the example below. Is there anything similar tfor org.specs and lift? I see the lack of tutorials/documentation on testing the greatest obstacle of taking lift into use.
require 'hello_world' require 'test/unit' require 'rack/test' set :environment, :test class HelloWorldTest < Test::Unit::TestCase include Rack::Test::Methods def app Sinatra::Application end def test_it_says_hello_world get '/' assert last_response.ok? assert_equal 'Hello World', last_response.body end def test_it_says_hello_to_a_person get '/', :name => 'Simon' assert last_response.body.include?('Simon') end end -Vesa --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---