Sha256: 82a3a94754c8614f374df21e34fbcf1ddd352b819ccabe84347bfb2df3e3d645

Contents?: true

Size: 545 Bytes

Versions: 3

Compression:

Stored size: 545 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
    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

3 entries across 3 versions & 1 rubygems

Version Path
watir_framework-0.1.7 lib/generators/templates/spec/name_spec.rb.erb
watir_framework-0.1.6 lib/generators/templates/spec/name_spec.rb.erb
watir_framework-0.1.5 generators/new_project/templates/spec/name_spec.rb.erb