Sha256: 4777556d98bb6bca7542b696d5a7f85dd614be9d749fe8895b652c91d9dc4d61
Contents?: true
Size: 750 Bytes
Versions: 25
Compression:
Stored size: 750 Bytes
Contents
RSpec.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 expect(generated_source).to eql(expected_source) end end
Version data entries
25 entries across 25 versions & 1 rubygems