free_mutant/spec/unit/mutant/node_helpers/n_not_spec.rb
Dan Kubb 7293386c26 Add magic encoding header to all ruby files
* rubocop still warns about this on ruby 1.9.3, so it was fixed so
  it produces less output on travis.
2013-07-28 16:03:06 -07:00

14 lines
317 B
Ruby

# encoding: utf-8
require 'spec_helper'
describe Mutant::NodeHelpers, '#n_not' do
subject { object.n_not(node) }
let(:object) { Object.new.extend(described_class) }
let(:node) { described_class::N_TRUE }
it 'returns the negated node' do
expect(subject).to eq(parse('not true'))
end
end