# -*- 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
play(name: "piano_do.wav")
end
car1.play(name: "piano_do.wav")
EOS
describe compact_source_code(parts), character_new_data: true do
_parts = parts
let(:parts) { _parts }
it '結果が正しいこと' do
should eq_block_xml(<<-XML)
car1
piano_do.wav
piano_do.wav
XML
end
end
end