Sha256: 6cd17357948e632f6b2306daa24089ced56ed227cc403c94772cc7e2624d6ff5

Contents?: true

Size: 368 Bytes

Versions: 7

Compression:

Stored size: 368 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Function::Connective::Negation, '.call' do
  subject { object.call(operand) }

  let(:object) { described_class }

  context 'when operand is true' do
    let(:operand) { true }

    it { should be(false) }
  end

  context 'when operand is false' do
    let(:operand) { false }

    it { should be(true) }
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
axiom-0.2.0 spec/unit/axiom/function/connective/negation/class_methods/call_spec.rb
axiom-0.1.1 spec/unit/axiom/function/connective/negation/class_methods/call_spec.rb
axiom-0.1.0 spec/unit/axiom/function/connective/negation/class_methods/call_spec.rb
veritas-0.0.7 spec/unit/veritas/function/connective/negation/class_methods/call_spec.rb
veritas-0.0.6 spec/unit/veritas/function/connective/negation/class_methods/call_spec.rb
veritas-0.0.5 spec/unit/veritas/function/connective/negation/class_methods/call_spec.rb
veritas-0.0.4 spec/unit/veritas/function/connective/negation/class_methods/call_spec.rb