Sha256: 4a8dadff26b238cabc97879d2ee88282365a3884dbe6d4315f350819dd86530f
Contents?: true
Size: 763 Bytes
Versions: 8
Compression:
Stored size: 763 Bytes
Contents
require 'spec_helper' describe Mutant::Context::Scope, '#root' do subject { object.root(node) } let(:object) { described_class.new(TestApp::Literal, path) } let(:path) { double('Path') } let(:node) { parse(':node') } let(:scope) { subject.body } let(:scope_body) { scope.body } let(:expected_source) do generate(parse(<<-RUBY)) module TestApp class Literal :node end end RUBY end let(:generated_source) do Unparser.unparse(subject) end let(:round_tripped_source) do Unparser.unparse(parse(expected_source)) end it 'should create correct source' do generated_source.should eql(expected_source) end end
Version data entries
8 entries across 8 versions & 1 rubygems