Sha256: df890f3aec9894d96999c686096f954211cd58c38c76eec7591250780c60dfa2

Contents?: true

Size: 1.14 KB

Versions: 17

Compression:

Stored size: 1.14 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:
          log: 'evidence'
          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

17 entries across 17 versions & 1 rubygems

Version Path
chemistrykit-3.9.0.rc3 features/load_page_objects.feature
chemistrykit-3.9.0.rc2 features/load_page_objects.feature
chemistrykit-3.9.0.rc1 features/load_page_objects.feature
chemistrykit-3.8.1 features/load_page_objects.feature
chemistrykit-3.8.0 features/load_page_objects.feature
chemistrykit-3.7.0 features/load_page_objects.feature
chemistrykit-3.6.0 features/load_page_objects.feature
chemistrykit-3.5.0 features/load_page_objects.feature
chemistrykit-3.4.2 features/load_page_objects.feature
chemistrykit-3.4.1 features/load_page_objects.feature
chemistrykit-3.4.0 features/load_page_objects.feature
chemistrykit-3.3.1 features/load_page_objects.feature
chemistrykit-3.3.0 features/load_page_objects.feature
chemistrykit-3.2.0 features/load_page_objects.feature
chemistrykit-3.1.0 features/load_page_objects.feature
chemistrykit-3.0.1 features/load_page_objects.feature
chemistrykit-3.0.0 features/load_page_objects.feature