RailsCasts Pro episodes are now free!

Learn more or hide this

Mani Tadayon's Profile

GitHub User: bowsersenior

Site: http://www.csun.edu/~mt541071/

Comments by Mani Tadayon


Very interesting alternative to Cucumber. Reminds me of a new feature in Capybara that integrates RSpec acceptance tests, letting you write a test like this:

require 'acceptance/acceptance_helper'

feature "Articles", %q{
  In order to have an awesome blog
  As an author
  I want to create and manage articles
} do

  background do
    Article.create!(:title => 'One')
    Article.create!(:title => 'Two')

  scenario "Article index" do
    visit '/articles'
    page.should have_content('One')
    page.should have_content('Two')


For more info, see this excellent blog post: http://jeffkreeftmeijer.com/2011/acceptance-testing-using-capybaras-new-rspec-dsl/


Wow, I was just recently looking for an alternative to will_paginate that was compatible with Mongoid. Thanks again for the just-in-time railscast, Ryan!