From e08ecd2a5bf521c867c97a145a27a923fbfb9bf4 Mon Sep 17 00:00:00 2001 From: Jingwen Owen Ou Date: Mon, 15 Sep 2014 21:04:03 -0700 Subject: [PATCH] Remove toml related code in cukes --- Gemfile | 1 - features/steps.rb | 5 ----- features/support/env.rb | 11 ----------- 3 files changed, 17 deletions(-) diff --git a/Gemfile b/Gemfile index 2e5101c00..a111c729b 100644 --- a/Gemfile +++ b/Gemfile @@ -3,7 +3,6 @@ source 'https://rubygems.org' gem 'rake', '~> 10.1.1' gem 'aruba', '~> 0.5.3' gem 'cucumber', '~> 1.3.9' -#gem 'toml' gem 'sinatra' group :development do diff --git a/features/steps.rb b/features/steps.rb index 08ffc7d4b..f4cac7245 100644 --- a/features/steps.rb +++ b/features/steps.rb @@ -188,11 +188,6 @@ end end -# This is to validate a toml file since it includes " -Then(/^the file "([^"]*)" should contain '(.*)'$/) do |file, partial_content| - check_file_content(file, partial_content, true) -end - Given(/^the file named "(.+?)" is older than hub source$/) do |file| prep_for_fs_check do time = File.mtime(File.expand_path('../../lib/hub/commands.rb', __FILE__)) - 60 diff --git a/features/support/env.rb b/features/support/env.rb index b39dbafce..68214e3e0 100644 --- a/features/support/env.rb +++ b/features/support/env.rb @@ -135,17 +135,6 @@ def edit_hub_config end yield data File.open(config, 'w') { |cfg| cfg << YAML.dump(data) } - - #comment out toml setup - #require 'toml' - #hub_config = [] - #yield hub_config - - ## the `toml` gem doesn't work well with array of table (https://github.com/mojombo/toml#array-of-tables) - ## a temporary solution here to output the right format - ## see https://github.com/jm/toml/issues/31 - #data = hub_config.map { |c| "[[hosts]]\n#{TOML::Generator.new(c).body}" }.join("\n\n") - #File.open(config, 'w') { |cfg| cfg << data } end define_method(:text_editor_script) do |bash_code|