Sha256: 5ce553e5674e7d1b98270bd03a16110c82481e0e1e90de8193ffab22a1a542ba
Contents?: true
Size: 613 Bytes
Versions: 5
Compression:
Stored size: 613 Bytes
Contents
require 'spec_helper' describe Mutant::Context::Scope, '#root' do subject { object.root(node) } let(:object) { described_class.build(TestApp::Literal, path) } let(:path) { mock('Path') } let(:node) { mock('Node') } let(:scope) { subject.body } let(:scope_body) { scope.body } it 'should wrap the ast under constant' do scope.should be_kind_of(Rubinius::AST::ClassScope) end it 'should place the ast under scope inside of block' do scope_body.should be_a(Rubinius::AST::Block) scope_body.array.should eql([node]) scope_body.array.first.should be(node) end end
Version data entries
5 entries across 5 versions & 1 rubygems