Sha256: a142ed35967a8e3e15ee13e63e9d6e022f69d362e3d10eeffadb4d63624e5974

Contents?: true

Size: 370 Bytes

Versions: 9

Compression:

Stored size: 370 Bytes

Contents

require 'bundler/setup'
require 'rspec'

def html_wrap(html)
  "<!DOCTYPE html><html><body>#{html}</body></html>"
end

# Return the last error message on STDERR.
# Prevents the message being output to STDERR.
def last_stderr
  orig_stderr = $stderr
  $stderr = StringIO.new
  yield
  $stderr.rewind
  message = $stderr.string.chomp
  $stderr = orig_stderr
  message
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
mida_vocabulary-0.2 spec/spec_helper.rb
mida_vocabulary-0.1.3 spec/spec_helper.rb
mida_vocabulary-0.1.2 spec/spec_helper.rb
mida_vocabulary-0.1.1 spec/spec_helper.rb
mida_vocabulary-0.1 spec/spec_helper.rb
mida-0.3.3 spec/spec_helper.rb
mida-0.3.2 spec/spec_helper.rb
mida-0.3.1 spec/spec_helper.rb
mida-0.3.0 spec/spec_helper.rb