spec/turnip_helper.rb in acceptance_test-1.4.9 vs spec/turnip_helper.rb in acceptance_test-1.5.0

- old
+ new

@@ -1,13 +1,20 @@ require 'turnip/capybara' require 'turnip/rspec' -require 'features/steps/wikipedia_steps' - RSpec.configure do |config| config.include Capybara::DSL end +require 'features/steps/wikipedia_steps' + RSpec.configure do |config| - config.include WikipediaSteps - # config.include WikipediaSteps, :web => true + config.include WikipediaSteps, :wikipedia => true end + +require 'acceptance_test/gherkin_helper' + +# enable external source for gherkin + +data_reader = lambda {|source_path| CSV.read(File.expand_path(source_path)) } +GherkinHelper.instance.enable_external_source data_reader +