Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cucumber with Rspec

 
Dan King
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've recently dabbled in testing a Rails application with Rspec, and I'm curious to know: how easy is it to use Rspec with Cucumber? Also, is there any benefits and/or issues with using Rspec with Cucumber?
 
Matt Wynne
author
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dan,

Cucumber and RSpec are complimentary tools. You use Cucumber to write high-level end-to-end tests that you can share with project stakeholders, and RSpec to write microtests for individual classes and modules. The RSpec Book explains the process of moving between these two levels of tests very well:

http://pragprog.com/book/achbd/the-rspec-book
 
Dan King
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Matt Wynne wrote:Hi Dan,

Cucumber and RSpec are complimentary tools. You use Cucumber to write high-level end-to-end tests that you can share with project stakeholders, and RSpec to write microtests for individual classes and modules. The RSpec Book explains the process of moving between these two levels of tests very well:

http://pragprog.com/book/achbd/the-rspec-book


Hi Matt,

Thanks for the clarification; however the source of confusion was my lack of clarity on RSpec Stories. I've since searched for more information and clarified my understanding.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic