Sha256: 2c78910c47c1c65938836aeeff93d5c61f5c03869a152f0bdbdfdf4b1f478c54

Contents?: true

Size: 561 Bytes

Versions: 2

Compression:

Stored size: 561 Bytes

Contents

require 'shomen/cli'
require 'stringio'

parser = ENV['parser'] || 'rdoc'

#Before :all do
  if not File.exist?('.ruby')
    dotruby = "---\nname: example\n"
    File.open('.ruby', 'w'){ |f| f << dotruby }
  end
#end

When 'Given a file +(((.*?)))+' do |file, text|
  @file = file
  FileUtils.mkdir_p(File.dirname(file))
  File.open(file, 'w'){ |f| f << text }
end

When 'Running the script through shomen' do
  output = ''
  $stdout = StringIO.new(output,'w+')
  Shomen.cli(parser, '--format', 'yaml', @file)
  $stdout.close
  @shomen = YAML.load(output)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shomen-0.1.1 spec/applique/shomen.rb
shomen-0.1.0 spec/applique/shomen.rb