Sha256: 336cabde0dbb3df727c93d51e99c43633d88f870e70f053c8358396009379d1c
Contents?: true
Size: 865 Bytes
Versions: 1
Compression:
Stored size: 865 Bytes
Contents
require 'turnip/capybara' require 'turnip/rspec' require 'csv' require 'yaml' require 'acceptance_test' require 'acceptance_test/gherkin_helper' class TurnipHelper attr_reader :acceptance_test def initialize @acceptance_test = AcceptanceTest.instance RSpec.configure do |config| config.include Capybara::DSL end enable_external_source end def register_steps path, class_name, tag, shared_group require path clazz = Object.const_get(class_name) RSpec.configure do |config| config.include clazz, tag => true end acceptance_test.create_shared_context shared_group end private def enable_external_source # enable external source for gherkin data_reader = lambda {|source_path| CSV.read(File.expand_path(source_path)) } GherkinHelper.instance.enable_external_source data_reader end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
acceptance_test-1.5.1 | lib/acceptance_test/turnip_helper.rb |