Add in Gemfile: group :development, :test do gem 'rspec-rails' gem 'spork-rails' end group :test do gem 'capybara'
To get parent of Capybara's node do the following: node = page.find '#selector' parent = node.find(:xpath, '..') parent_of_parent = node.find...
In case you want to organize your features in sub folders, you must tell Cucumber where to find step definitions
Best results in other decks
sktthemes.org
WordPress websites have always been a favourite for all types of clients because of its simplicity and easy of use...
def test_autocomplete(field, options = {}) fill_in field, :with => options[:with] page.execute_script("$('##{field}').trigger('focus');") page.execute_script ("$('##{field}').trigger...