File: spec_helper.rb

package info (click to toggle)
ruby-morpher 0.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 236 kB
  • sloc: ruby: 1,444; makefile: 4
file content (17 lines) | stat: -rw-r--r-- 265 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

require 'morpher'

module PreludeHelper
  def right(value)
    Morpher::Either::Right.new(value)
  end

  def left(value)
    Morpher::Either::Left.new(value)
  end
end

RSpec.configure do |config|
  config.include(PreludeHelper)
end