7293386c26
* rubocop still warns about this on ruby 1.9.3, so it was fixed so it produces less output on travis.
14 lines
317 B
Ruby
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
|