Sha256: 750d29331a289650f59901314e349ad4f8dea94312cb346fa7b9141f0e901dc4
Contents?: true
Size: 525 Bytes
Versions: 1
Compression:
Stored size: 525 Bytes
Contents
require 'shomen-rdoc' require 'stringio' #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::Rdoc::Command.run('--yaml', @file) $stdout.close @shomen = YAML.load(output) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shomen-rdoc-0.1.0 | spec/applique/shomen.rb |