Sha256: 7cab30768d67b03c5ca620dd731607397dda2bbb638ad27ca1377a4da8f7ee68

Contents?: true

Size: 1.11 KB

Versions: 2

Compression:

Stored size: 1.11 KB

Contents

Feature: Load Page Objects
Formulas should be loaded in the correct order with thier dependencies

  Scenario: Load the libs first
    Given I run `ckit new big-project`
    And I cd to "big-project"
    And a file named "config.yaml" with:
      """
      selenium_connect:
          host: 'localhost'
      """
    And a file named "formulas/big.rb" with:
      """
      module Formulas
        class BigProject < Formula

          def open(url)
            helper_open(url)
          end

        end
      end
      """

    And a file named "formulas/lib/formula.rb" with:
      """
      module Formulas
        class Formula < ChemistryKit::Formula::Base
          def helper_open(url)
            @driver.get url
          end
        end
      end
      """

    And a file named "beakers/big_beaker.rb" with:
      """
      describe "Big", :depth => 'shallow' do
        let(:book) { Formulas::BigProject.new(@driver) }

        it "loads an external web page" do
          book.open "http://www.google.com"
        end
      end
      """

    When I run `ckit brew`
    Then the stdout should contain "1 example, 0 failures"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
chemistrykit-3.9.1 features/load_page_objects.feature
chemistrykit-3.9.0 features/load_page_objects.feature