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

Avatar

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')
  end

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

end

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

Avatar

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!