Hi, I am looking for a good free tutorial which implements RSpec with Rails 3. I have found many tutorials which work for Rails 2.x but leads you into issues when trying the same in Rails 3. Rspec Gem also has updated , coming off the age.. Leading into compatibility issues. I am able to setup RSpec in my app but I can''t fix issues I am getting into. Its like i am implementing a customized app without get an overall idea of what changes I would have to carefully incorporate due to usage of the latest Rails ( say 3.0 ) and the latest RSpec gem 2.5. I am also making use of rspec-rails 2.5 gem. Such tutorials( based on earlier versions of Rails and Rspec ) I have seen so far include: http://fr.ivolo.us/posts/rspec-tutorial-part-2-a-simple-test http://blog.davidchelimsky.net/2007/05/14/an-introduction-to-rspec-part-i/ I am unable to find Part 2 of David''s tutorial also. I wonder where I could find that. I also have seen a similar questions on stackoverflow.com like:- Rails: Good Rspec2 example usage? (Also: Cucumber, Pickle, Capybara) The only free tutorial relevant to Rspec with Rails 3 that I could find so far is:- http://ruby.railstutorial.org/ruby-on-rails-tutorial-book I am using ruby 1.9.2 and rails 3.0.3 along with Ubuntu 10.04 . Thanks for any suggestions you can help me with. -- Posted via http://www.ruby-forum.com/.
I recommend getting a copy of The RSpec Book ( http://www.pragprog.com/titles/achbd/the-rspec-book). I read through that when I was fairly new to RSpec and I think it helped ramp up quickly. Jon Homan On Thu, Mar 10, 2011 at 5:52 AM, Mohnish J. <lists at ruby-forum.com> wrote:> Hi, > > I am looking for a good free tutorial which implements RSpec with Rails > 3. I have found many tutorials which work for Rails 2.x but leads you > into issues when trying the same in Rails 3. Rspec Gem also has updated > , coming off the age.. Leading into compatibility issues. > > I am able to setup RSpec in my app but I can''t fix issues I am getting > into. Its like i am implementing a customized app without get an overall > idea of what changes I would have to carefully incorporate due to usage > of the latest Rails ( say 3.0 ) and the latest RSpec gem 2.5. I am also > making use of rspec-rails 2.5 gem. > > Such tutorials( based on earlier versions of Rails and Rspec ) I have > seen so far include: > > http://fr.ivolo.us/posts/rspec-tutorial-part-2-a-simple-test > > http://blog.davidchelimsky.net/2007/05/14/an-introduction-to-rspec-part-i/ > > I am unable to find Part 2 of David''s tutorial also. I wonder where I > could find that. > > I also have seen a similar questions on stackoverflow.com like:- > > Rails: Good Rspec2 example usage? (Also: Cucumber, Pickle, Capybara) > > The only free tutorial relevant to Rspec with Rails 3 that I could find > so far is:- > > http://ruby.railstutorial.org/ruby-on-rails-tutorial-book > > I am using ruby 1.9.2 and rails 3.0.3 along with Ubuntu 10.04 . > > Thanks for any suggestions you can help me with. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20110310/be7fc1ea/attachment-0001.html>
I understand you''re looking for ''free'' tutorials but I would really strongly advise you check out Michael Hartl''s http://ruby.railstutorial.org/screencast series. I''m not affiliated with this in any way, but I watched them recently (more for the Rails 3 info than RSpec) and found the use of RSpec and test-first development (not /really/ TDD) to be worth the price alone - there are so many rspec-rails specific gotchas that you just don''t even think about when using naked RSpec. The screencast + PDF combination represent excellent value for money (currently $95); which you should easily make back when you deploy your first killer Rails app. :-) HTH James. On Thu, Mar 10, 2011 at 10:52 PM, Mohnish J. <lists at ruby-forum.com> wrote:> Hi, > > I am looking for a good free tutorial which implements RSpec with Rails > 3. I have found many tutorials which work for Rails 2.x but leads you > into issues when trying the same in Rails 3. Rspec Gem also has updated > , coming off the age.. Leading into compatibility issues. > > I am able to setup RSpec in my app but I can''t fix issues I am getting > into. Its like i am implementing a customized app without get an overall > idea of what changes I would have to carefully incorporate due to usage > of the latest Rails ( say 3.0 ) and the latest RSpec gem 2.5. I am also > making use of rspec-rails 2.5 gem. > > Such tutorials( based on earlier versions of Rails and Rspec ) I have > seen so far include: > > http://fr.ivolo.us/posts/rspec-tutorial-part-2-a-simple-test > > http://blog.davidchelimsky.net/2007/05/14/an-introduction-to-rspec-part-i/ > > I am unable to find Part 2 of David''s tutorial also. I wonder where I > could find that. > > I also have seen a similar questions on stackoverflow.com like:- > > Rails: Good Rspec2 example usage? (Also: Cucumber, Pickle, Capybara) > > The only free tutorial relevant to Rspec with Rails 3 that I could find > so far is:- > > http://ruby.railstutorial.org/ruby-on-rails-tutorial-book > > I am using ruby 1.9.2 and rails 3.0.3 along with Ubuntu 10.04 . > > Thanks for any suggestions you can help me with. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20110311/d973818e/attachment.html>
Hi Jon, Thanks for your recommendation. Jon Homan wrote in post #986735:> I recommend getting a copy of The RSpec Book ( > http://www.pragprog.com/titles/achbd/the-rspec-book). I read through > that > when I was fairly new to RSpec and I think it helped ramp up quickly. > > Jon Homan-- Posted via http://www.ruby-forum.com/.
Hi James, Thanks for your suggestion. James Martin wrote in post #986783:> I understand you''re looking for ''free'' tutorials but I would really > strongly > advise you check out Michael Hartl''s > http://ruby.railstutorial.org/screencast series. I''m not affiliated > with this in any way, but I watched > them recently (more for the Rails 3 info than RSpec) and found the use > of > RSpec and test-first development (not /really/ TDD) to be worth the > price > alone - there are so many rspec-rails specific gotchas that you just > don''t > even think about when using naked RSpec. > > The screencast + PDF combination represent excellent value for money > (currently $95); which you should easily make back when you deploy your > first killer Rails app. :-) > > > HTH > > James.-- Posted via http://www.ruby-forum.com/.