It is important to end filename of every spec files for RSpec with prefix ‘_spec.rb’. You can try it out. The RSpec only executes the specs if filename ends with ‘_spec.rb’ else it ignores the file even if it is a ruby file. 95 more words
Tags » Rspec 2
RSpec Setup in Rails 4An up-to-date testing environment setup for Rails 4, including RSpec, Capybara, and FactoryGirl.
Gems gonna used are: 457 more words
Keep Specs Fresh With Anonymous Classes (Copied)
Sometimes it can be difficult to test a module since you don’t want to test it tied to a specific implementation. 143 more words
You probably know how to use
specify to clearly communicate one aspect of your code. The nested context provides by… 176 more words