News for hackers. Stuff that matters.
Re:The Ruby on Rails Tutorial, 2nd Edition (full draft) by prusswan on Wednesday February 08, 2012 @10:05PM (#3569600)
Not sure if you are aware of this...for the first edition of your tutorial, webrat is required for many of the tests (I tested on ubuntu/windows), but inclusion of webrat will actually break some of the new tests (like those using have_selector) in the second edition. You might want to add a warning to those who have followed the first edition and are trying to incorporate the additions in the second edition.
Re:The Ruby on Rails Tutorial, 2nd Edition (full draft) by mhartl on Thursday February 09, 2012 @02:19AM (#3570156)
The 2nd edition explicitly uses Capybara instead of Webrat. As long as people pay attention to their Gemfiles, they should be fine.
Re:The Ruby on Rails Tutorial, 2nd Edition (full draft) by prusswan on Monday February 13, 2012 @02:19AM (#3584598)
It would be nice if you can discuss the differences, like how Capybara is meant for integration tests, and replacement for have_template etc. At some sections the tests are still referred to controller tests (Listing 10.46) although it looks like you intend to convert them all to integration tests.
Re:The Ruby on Rails Tutorial, 2nd Edition (full draft) by prusswan on Monday February 13, 2012 @04:57AM (#3584946)
Also, 11.37 tests do not work with valid_sign_in (using session authentication), but works with the controller.sign_in method introduced in 1e.