HTML
compare(input, expected)
end
it 'creates a menu with items tags inside, containing target="_blank" attribute' do
input = <<-INKY
INKY
expected = <<-HTML
HTML
compare(input, expected)
end
end
RSpec.describe "Callout" do
it "creates a callout with correct syntax" do
input = 'Callout';
expected = <<-HTML
Callout
HTML
compare(input, expected);
end
it "copies classes to the final HTML" do
input = 'Callout'
expected = <<-HTML
Callout
HTML
compare(input, expected);
end
end
RSpec.describe "Spacer" do
it 'creates a spacer element with correct size' do
input = '';
expected = <<-HTML
HTML
compare(input, expected);
end
it 'creates a spacer element for small screens with correct size' do
input = ''
expected = <<-HTML
HTML
compare(input, expected)
end
it 'creates a spacer element for large screens with correct size' do
input = ''
expected = <<-HTML
HTML
compare(input, expected)
end
it 'creates a spacer element for small and large screens with correct sizes' do
input = ''
expected = <<-HTML
HTML
compare(input, expected)
end
it 'copies classes to the final spacer HTML' do
input = ''
expected = <<-HTML
HTML
compare(input, expected);
end
end
RSpec.describe "Wrapper" do
it 'creates a wrapper that you can attach classes to' do
input = ''
expected = <<-HTML
HTML
compare(input, expected);
end
end
RSpec.describe "raw" do
it 'creates a wrapper that ignores anything inside' do
input = "<>"
expected = "<>"
# Can't do vanilla compare because the second will fail to parse
inky = Inky::Core.new
output = inky.release_the_kraken(input)
expect(output).to eql(expected)
end
end