Sha256: 8f3a57fec426c4afce202e5dcd22aab46acd4ebda59785e8b8ec169be3b20a77
Contents?: true
Size: 1.48 KB
Versions: 3
Compression:
Stored size: 1.48 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 ## Happy Bgagngagnga This one is just to throw things off EONOTE File.open('builda.md', 'w') { |f| f.puts note } # puts "Saved to builda.md: #{File.exist?('builda.md')}" end def delete_buildnote FileUtils.rm('builda.md') end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
howzit-2.1.18 | spec/spec_helper.rb |
howzit-2.1.16 | spec/spec_helper.rb |
howzit-2.1.15 | spec/spec_helper.rb |