Sha256: 4e50e95326dc5ee4e9d6f2ccb41bff654a844ebdc2f9219217674932fdab0084

Contents?: true

Size: 486 Bytes

Versions: 1

Compression:

Stored size: 486 Bytes

Contents

require "spec_helper"

describe <%= name.capitalize %> do
  it "starts a driver" do
    browser = Watir::Browser.new
    expect(browser.window).to exist
    browser.quit
  end

  it "submits a search" do
    WatirDrops::PageObject.browser = Watir::Browser.new
    search_page = <%= name.capitalize %>::Home.visit
    search_page.search('Foo')
    expect(<%= name.capitalize %>::Results.new.first_result).to include "Foobar - Wikipedia"
    WatirDrops::PageObject.browser.quit
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
watir_framework-0.1.1 generators/new_project/templates/spec/name_spec.rb.erb