Sha256: f91438de384cb00e6a2d631b6cc9039e36dcb330b9f3ef0a023d4035bf2c57ec
Contents?: true
Size: 1.16 KB
Versions: 6
Compression:
Stored size: 1.16 KB
Contents
# require 'simplecov' # SimpleCov.start # if ENV['CI'] == 'true' # require 'codecov' # SimpleCov.formatter = SimpleCov::Formatter::Codecov # else # SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter # end require 'howzit' RSpec.configure do |c| c.expect_with(:rspec) { |e| e.syntax = :expect } c.before(:each) do allow(FileUtils).to receive(:remove_entry_secure).with(anything) save_buildnote Howzit.options[:include_upstream] = false Howzit.options[:default] = true @hz = Howzit.buildnote end c.after(:each) do delete_buildnote end end def save_buildnote note = <<~EONOTE # Howzit Test ## Topic Balogna @before This should be a prerequisite. @end @run(ls -1 &> /dev/null) Null Output @include(Topic Tropic) @after This should be a postrequisite. @end ## Topic Banana This is just another topic. - It has a list in it - That's pretty fun, right? ## Topic Tropic Bermuda, Bahama, something something wanna. @copy(Balogna) Just some balogna EONOTE File.open('builda.md', 'w') { |f| f.puts note } end def delete_buildnote FileUtils.rm('builda.md') end
Version data entries
6 entries across 6 versions & 1 rubygems