RORO May Lightning Preso Madness
Upcoming SlideShare
Loading in...5
×
 

RORO May Lightning Preso Madness

on

  • 2,081 views

My 4 preso mixed bag from the May RORO Sydney meetup

My 4 preso mixed bag from the May RORO Sydney meetup

Statistics

Views

Total Views
2,081
Views on SlideShare
2,080
Embed Views
1

Actions

Likes
0
Downloads
2
Comments
0

1 Embed 1

http://www.slideshare.net 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

RORO May Lightning Preso Madness RORO May Lightning Preso Madness Presentation Transcript

  • Cufon Fast text replacement with canvas and VML - no Flash or images required.
  • <!DOCTYPE html PUBLIC quot;-//W3C//DTD XHTML 1.0 Strict//ENquot; quot;http:// www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtdquot;> <html> <head> <script src=quot;cufon.jsquot; type=quot;text/javascriptquot;></script> <script src=quot;fontin.font.jsquot; type=quot;text/javascriptquot;></script> <script type=quot;text/javascriptquot;> Cufon.replace(quot;h1quot;); </script> </head> <body> <h1>Look mah, it's Fontin!</h1> </body> </html>
  • VIEW-FIRST Validations
  • SIMPLIFYING Cucumber Stories
  • Feature: Administering school subscriptions In order to manage a school's textbook subscriptions As a super user I want to be add and remove textbooks from a school's subscriptions Scenario: index Given I am logged in as a super-user And a school quot;Gymea Techquot; exists When I go to the school admin book subscriptions for quot;Gymea Techquot; Then I see the page
  • Feature: Administering school subscriptions In order to manage a school's textbook subscriptions As a super user I want to be add and remove textbooks from a school's subscriptions Scenario: index Given I am logged in as a super-user And a school quot;Gymea Techquot; exists When I go to the school admin book subscriptions for quot;Gymea Techquot; Then I see the page
  • def path_to(page_name) when /^new school admin$/ case page_name new_admin_school_path when /^the homepage$/ when /^the school admin for quot;(.*)quot;$/ root_path admin_school_path(school_with_name($1)) when /^the books page$/ when /^the school admin book subscriptions for quot;(.*)quot;$/ books_path admin_school_book_subscriptions_path(school_with_name($1)) when /^the login page$/ when /^the admin school admins path for quot;(.*)quot;$/ login_path admin_school_admins_path(school_with_name($1)) when /^logout$/ when /^the book homepage for quot;(.*)quot;$$/ logout_path book_path(book_with_title($1)) when /^the forgot password page$/ when /^the first article in quot;(.*)quot;$/ new_forgot_password_path book = book_with_title($1) book_article_path(book, book.articles.first) when /^the register page$/ register_path when /^the text version of the first article in quot;(.*)quot;$/ book = book_with_title($1) when /^the admin$/ book_article_path(book, book.articles.first, quot;textquot;) admin_path when /^the image path quot;(.*)quot; for quot;(.*)quot;$/ when /^the super-users admin$/ book_image_path(book_with_title($2), $1.split(quot;/quot;)) admin_super_users_path else when /^the schools admin$/ raise quot;Mapping from quot;#{page_name}quot; to a path not definedquot; admin_schools_path end end
  • Feature: Feedback form Scenario: submitting feedback w/ an email address Given logged in When post /feedback with {:email => quot;bob@bob.comquot;} Then response 302 to /feedback/thanks?reply=true And contact@agencyrainford.com receives an email
  • When /^post ([^s]+) with ({.*})$/ do |path, params| post path, eval(params) end
  • TIM LUCAS TWITTER.COM/TOOLMANTIM TOOLMANTIM.COM