Sha256: 1ccb042903c3c1ac358655c6455ac5d194a782178475fc87878ead8a70bd07c2
Contents?: true
Size: 1.36 KB
Versions: 6
Compression:
Stored size: 1.36 KB
Contents
# frozen_string_literal: true unless ENV['CI'] == 'true' # SimpleCov::Formatter::Codecov # For CI require 'simplecov' SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter SimpleCov.start end require 'howzit' require 'cli-test' 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 defined: this is defined # Howzit Test ## Topic Balogna @before This should be a prerequisite. @end @run(ls -1 &> /dev/null) Null Output @include(Topic Tropic) ```run #!/usr/bin/env ruby title = "[%undefined]".empty? ? "[%defined]" : "[%undefined]" ``` @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? - Defined: '[%defined]' - Undefined: '[%undefined]' ## 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