Skip to content

Instantly share code, notes, and snippets.

Basic TDD Flow with rspec

To create a new project with rspec, begin from the the project's root directory and install the rspec gem:

gem install rspec

Create a folder in this root directory called spec where we will house all of your test files. cd into this folder and create a file called reverser_spec.rb. Let's write our first test:

@Pharoah19
Pharoah19 / install-node-pi.sh
Created December 2, 2017 19:11 — forked from myrtleTree33/install-node-pi.sh
Install Node JS in 30 seconds for Raspberry Pi / ARM
#!/bin/bash
## Check for versions compiled with ARM at http://nodejs.org/dist/
## Inspired by http://oskarhane.com/raspberry-pi-install-node-js-and-npm/
## Fill in the Node Version here:
##########################################################################
NODE_VERSION="v0.10.21"
@Pharoah19
Pharoah19 / index.html
Created October 5, 2017 01:20
CanJS Bus Demo Chicago Bus Routes - Start // source https://jsbin.com/nalinut
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Chicago Bus Routes - Start">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>CanJS Bus Demo</title>
<link href="https://fonts.googleapis.com/css?family=Catamaran" rel="stylesheet">
<style id="jsbin-css">
html,