require 'minitest_helper'
module SlideHero
describe GroupedSlides do
describe "nesting slides" do
it "groups sections" do
grouped_slides = GroupedSlides.new do
slide "banana" do
point "High in potassium"
end
slide "apple" do
point "Good if you hate doctors"
end
end
assert_dom_match grouped_slides.compile, " High in potassium Good if you hate doctorsbanana
" +
"apple
" +
"