Sha256: 68942793b1c1c6a7a478b6323d2856bbb810f9ba18e4a58c780a4477f6d987e0
Contents?: true
Size: 830 Bytes
Versions: 13
Compression:
Stored size: 830 Bytes
Contents
This example demonstrates how to use page models with RSpec to write acceptance tests for any website (in this case Google.com), using Capybara/Selenium/Firefox as a driver. ~~~~~~~~~~ See spec/spec_helper.rb for information about configuring PageModels to integrate with the various frameworks: PageModels.configure do |config| config.driver = :capybara config.integrate :rspec end spec_helper.rb also loads all everything in the pagemodels directory. GoogleSearchPage and GoogleResultsPage provide examples of page models which override PageModels::Base. ~~~~~~~~~~ RSpec integration exposes two convenience methods you may use in your specs: open_page(page_model) - switches the current page model to the one provided and calls #open! should_see_page(page_model) - switches the current page model and calls #verify!
Version data entries
13 entries across 13 versions & 1 rubygems