# -*- coding: utf-8 -*- require 'spec_helper' require_relative 'shared/block_examples' # rubocop:disable EmptyLines, LineLength describe RubyToBlock::Block, '見た目ジャンル', to_blocks: true do parts = <<-EOS car1.on(:start) do say(message: "こんにちは!") self.visible = true self.visible = false vanish next_costume switch_costume("costume1") end car1.say(message: "こんにちは!") car1.visible = true car1.visible = false car1.vanish car1.next_costume car1.switch_costume("costume1") EOS describe compact_source_code(parts), character_new_data: true do _parts = parts let(:parts) { _parts } it '結果が正しいこと' do should eq_block_xml(<<-XML) car1 こんにちは! costume1 こんにちは! costume1 XML end end end