# encoding: utf-8
require 'spec_helper'
describe 'document_link_parser' do
before do
raw_json = <
The following image is linked.
More important stuff
One more image, this one is not linked:
expected expected.chomp! link_resolver = Prismic.link_resolver("master"){|doc_link| "http://localhost/#{doc_link.id}" } @image_st.as_html(link_resolver).should == expected end end describe 'color_parser' do before do raw_json = <Our Pastry Dressers (yes, it is a full-time job in Les Bonnes Choses!) have it somewhat different from our other pastry artists: while the others keep their main focus on the taste, smell, and potentially touch of your pastries, the Pastry Dressers are mainly focused on their looks.
\n\n" + "It sometimes makes them feem like they're doing a job that is reasonably different from plain old pastry, and to make the most of your pastry dressings, perhaps so should you!
\n\n" + "From bottom to top, the steps towards a great dressing are pretty clear, and change rarely.
\n\n" + "One of the first handy phases of dressing your pastry will be about carving to get to a desired shape and size to build upon. This is very precise work, as you will need to
\n\n" + " the object without breaking it, to remove pieces of it while keeping intact the meaningful bits. Now you're ready to iterate upon it!" + "Then, you will need to shape your piece of art
\n\n" + " the design you have in mind, by adding the right materials to just the right places. Ganache is your friend in such moments, such as any shape-free material. You'll have to master them, so they obey to the shapes you have in mind.The top of the pastry is a priority zone for finalization. This is where your "last touch" goes, and it's tremendously important, as it gives the pastry most of its character. You will have to play with the details, to keep the top of your piece on the... top of your priorities!
\n\n" + "Finishing by the beginning: what did we have to consider, before running towards the aforementioned steps?
\n\n" + "\n\n" + "We didn't mention color, but it's a very important component of the piece. Just like an illustrator will pick colors that add to the shape in a matching way to keep a perfect meaning, the colors must be perfect to be consistent with the taste of the piece (do not use green-colored sugar for a strawberry-flavored pastry, if you don't want to gross people out!)
\n\n" + "And even before the illustration and colors, you really need to take the time to think about your destination, to make sure it's nothing short of perfect. This may imply taking the time to sit down for a few minutes with a paper and a pen. The first skill of an imaginative Pastry Dresser is a drawing skill, just like a fashion stylist.
" end end