Sha256: fa6ebd5a11ad915d2bc5ac503cb764ee3f91b410d091b5d35198ebf2499e62f5

Contents?: true

Size: 602 Bytes

Versions: 1

Compression:

Stored size: 602 Bytes

Contents

require "spec_helper"

describe <%= name.split('_').map(&:capitalize).join %> do
  let(:browser) { WatirSession.browser }

  it "starts a driver" do
    expect(browser.window).to exist
  end

  it "submits a search" do
    WatirDrops::PageObject.browser = Watir::Browser.new

    search_data = <%= name.split('_').map(&:capitalize).join %>::Model::Search.new
    search_page = <%= name.split('_').map(&:capitalize).join %>::Home.visit
    search_page.search(search_data)

    expect(<%= name.split('_').map(&:capitalize).join %>::Results.new.first_result).to include search_data.first_result
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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