Sha256: b084af1fe7a33dd9ba81d2b71e4af9417a9109e228d30a508c84b9da5d61d46c

Contents?: true

Size: 556 Bytes

Versions: 1

Compression:

Stored size: 556 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
    search_data = <%= name.capitalize %>::Model::Search.new
    WatirDrops::PageObject.browser = Watir::Browser.new
    search_page = <%= name.capitalize %>::Home.visit
    search_page.search(search_data)
    expect(<%= name.capitalize %>::Results.new.first_result).to include search_data.first_result
    WatirDrops::PageObject.browser.quit
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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