From 530ce2a574c715bda453282d8e7d657992c9f4bd Mon Sep 17 00:00:00 2001 From: Sylvester Keil Date: Sat, 12 Apr 2014 13:26:24 +0200 Subject: [PATCH] fix test dependencies --- Gemfile | 3 ++- features/bibtex.feature | 1 - features/step_definitions/jekyll_steps.rb | 30 ++++++++--------------- features/support/hooks.rb | 9 +++++++ 4 files changed, 21 insertions(+), 22 deletions(-) create mode 100644 features/support/hooks.rb diff --git a/Gemfile b/Gemfile index 863b6b2..06b890e 100644 --- a/Gemfile +++ b/Gemfile @@ -2,11 +2,12 @@ source 'https://rubygems.org' gemspec group :development do + gem 'minitest', '< 5.0' gem 'rake' gem 'redgreen', '~> 1.2' gem 'shoulda', '~> 3.5' gem 'rr', '~> 1.1' - gem 'cucumber', '~> 1.3' + gem 'cucumber', '=1.3.10' gem 'RedCloth', '~> 4.2' gem 'rdiscount', '~> 1.6' gem 'redcarpet', '~> 3.0' diff --git a/features/bibtex.feature b/features/bibtex.feature index 64d8354..b41be6d 100644 --- a/features/bibtex.feature +++ b/features/bibtex.feature @@ -24,7 +24,6 @@ Feature: BibTeX And the "_site/references.html" file should exist And I should see "The Ruby Programming Language" in "_site/references.html" - @converters Scenario: Markdown Formatted Bibliography Given I have a scholar configuration with: | key | value | diff --git a/features/step_definitions/jekyll_steps.rb b/features/step_definitions/jekyll_steps.rb index 0237458..868e486 100644 --- a/features/step_definitions/jekyll_steps.rb +++ b/features/step_definitions/jekyll_steps.rb @@ -1,16 +1,6 @@ -Before do - FileUtils.rm_rf(TEST_DIR) - FileUtils.mkdir(TEST_DIR) - Dir.chdir(TEST_DIR) -end -After do - Dir.chdir(TEST_DIR) - FileUtils.rm_rf(TEST_DIR) -end - # Like "I have a foo file" but gives a yaml front matter so jekyll actually processes it -Given /^I have an? "(.*)" page(?: with (.*) "(.*)")? that contains "(.*)"$/ do |file, key, value, text| +Given(/^I have an? "(.*)" page(?: with (.*) "(.*)")? that contains "(.*)"$/) do |file, key, value, text| File.open(file, 'w') do |f| f.write <