21. per spec
Capybara.javascript_driver = :selenium
# ...
describe 'requires js', :js => true do
it 'will use the default js driver'
it 'will switch to one specific driver',
:driver => :webkit
end
24. metaflop
web based platform for metafonts and
related type projects
modulator
experimental font generation
export as otf, webfont
25. spec sample 1
context 'when i change the unit width' do
it 'should show the loading indicator' do
fill_in 'param-unit-width', :with => 2
page.should have_selector(
'.preview-loading-text')
end
end
26. spec sample 2
context 'when i enable anatomy' do
it 'shows the anatomy image' do
within '#menu' do
click_link 'on'
end
page.should have_selector '#info-panel'
end
end
27. spec sample 3
context 'when i click the "webfont" link' do
it 'should call the font generator url' do
click_link('webfont')
current_url.should
include 'modulator/export/font/web'
end
end