Advertisement
Ruby

How to Integrate rspec into a Sinatra App

by

In today's video tutorial, I'm going to teach you how to use rspec within a Sinatra application. Along the way, we'll also arrange for autotesting with Growl notifications so that our tests run automatically when we save our projects. If you're quite new to the idea of testing, this is the perfect introduction.

Choose 720p for optimal viewing.
Subscribe to our YouTube and Blip.tv channels to watch more screencasts.

We'll Cover...

  • Installing rspec
  • Integrating rspec into a Sinatra application
  • The basic syntax for rspec tests
  • Enabling Growl notifications
  • Autotesting
Related Posts
  • Code
    Web Development
    Testing Your Ruby Code With Guard, RSpec & Pry: Part 2Ruby wideretina preview
    Continue learning test-driven development in Ruby with Guard, RSpec and Pry.Read More…
  • Code
    iOS SDK
    Exploring the Multipeer Connectivity framework: Project Setup78mpi preview image
    As with every major release, iOS 7 includes many new APIs that developers can take advantage of in their applications. In this tutorial, we'll take a look at a brand new framework introduced in iOS 7, the Multipeer Connectivity framework. This framework adds support for discovering, connecting to, and communicating with nearby services, such as iOS devices. In this tutorial, I will show you how to create a simple, multi-player game using this new framework.Read More…
  • Code
    Ruby
    Writing Robust Web Applications - The Lost Art of Exception HandlingRails education retina preview2
    As developers, we want the applications we build to be resilient when it comes to failure, but how do you achieve this goal? If you believe the hype, micro-services and a clever communication protocol are the answer to all your problems, or maybe automatic DNS failover. While that kind of stuff has its place and makes for an interesting conference presentation, the somewhat less glamorous truth is that making a robust application begins with your code. But, even well designed and well tested applications are often lacking a vital component of resilient code - exception handling.Read More…
  • Computer Skills
    App Training
    Alfred Workflows for BeginnersAlfred400
    Ever since Alfred 2.0 was in beta, I have been making Alfred workflows for myself and for others. It is a lot of fun and very helpful to my daily workflow. I usually average using Alfred around 130 times a day, with my peak day of 768 times. I am going to show you the basic concepts of workflow design in this tutorial, all the way to the very advanced features that you can use in your own workflows in later tutorials. So, come join the fun!Read More…
  • Computer Skills
    Productivity
    Quick Tip: A Tour of the Notification Center Changes in MavericksNotification center icon
    Notification Center arrived, last year, with the release of OS X Mountain Lion. It replaced Growl, a popular third-party notification system, and made our lives much easier by integrating Facebook and Twitter for message and mention notifications. It keeps your Mac and Web experience unified, as well as making common tasks like checking email less necessary. Mavericks adds to Notification Center with inline replies -- a quick way to send messages, a slight redesign, and more. In this tutorial, I’ll show you how these features can help you in an average day.Read More…
  • Computer Skills
    Productivity
    Quick Tip: Growl vs. Notification CenterNotificons3
    So you've upgraded to Mountain Lion. Do you stick with Growl for your notifications or do you switch to Apple's new Notification Center? Today we'll take a quick look at each and discuss their strengths, weaknesses, and how they can work together.Read More…