Skip to content

Commit

Permalink
Remove toml related code in cukes
Browse files Browse the repository at this point in the history
  • Loading branch information
owenthereal committed Sep 16, 2014
1 parent 13a8438 commit e08ecd2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions features/steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 0 additions & 11 deletions features/support/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit e08ecd2

Please sign in to comment.