File: guard_spec.rb

package info (click to toggle)
ruby-morpher 0.2.6-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 520 kB
  • sloc: ruby: 2,366; makefile: 4
file content (12 lines) | stat: -rw-r--r-- 390 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
describe Morpher::Evaluator::Transformer::Guard do
  let(:object) { described_class.new(predicate) }

  let(:predicate) { Morpher.compile(s(:primitive, String)) }

  let(:valid_input)     { 'foo'       }
  let(:invalid_input)   { :foo        }
  let(:expected_output) { valid_input }

  include_examples 'transforming evaluator on valid input'
  include_examples 'transitive evaluator'
end