Skip to content

Instantly share code, notes, and snippets.

#Rspec code for the tutorial RSpec Rails tutorial
#Developing a Rails model using BDD and RSpec, Part 1 (by Luke Redpath)
#http://lukeredpath.co.uk/blog/developing-a-rails-model-using-bdd-and-rspec-part-1.html
#Code updated based on my understanding of the current versions and convetions of RSpec in 2009.
require 'spec_helper'
describe User do
before(:each) do
1. Create a new rails app
Rails twatter
1b. Initialise git
git init
git add .
git commit -a -m 'Initial Comit, empty rails app'
2. generate cucumber files
script/generate cucumber
class TwatsController < ApplicationController
def new
@twat = Twat.new
end
end
require 'spec_helper'
def get_file
@instruction_file = gets.chomp
initialize_file
end
def initialize_file
@instruction_file = "instructions/input1.txt" if @instruction_file.nil? || @instruction_file.empty?
end
How to get Cucumber working with Spree
#This is a work in progress..
1. Ensure you have the latest version of cucumber
> gem install cucumber
2. gem list cucumber
get the version number of the latest version of cucumber you have installed.
<?php
/**
* Debian local configuration file
*
* This file overrides the settings made by phpMyAdmin interactive setup
* utility.
*
* For example configuration see /usr/share/doc/phpmyadmin/examples/config.default.php.gz
*
* NOTE: do not add security sensitive data to this file (like passwords)
<?php
/**
* Debian local configuration file
*
* This file overrides the settings made by phpMyAdmin interactive setup
* utility.
*
* For example configuration see /usr/share/doc/phpmyadmin/examples/config.default.php.gz
*
* NOTE: do not add security sensitive data to this file (like passwords)
@evolve2k
evolve2k / gist:771672
Created January 9, 2011 13:21
HTML Resources for Noobs
http://colorschemedesigner.com - Awesome web color design tool
http://validator.w3.org - W3C Markup Validation Checker
Wordpress
---------
http://wordpress.stackexchange.com - Wordpress help
@evolve2k
evolve2k / i9webworkshop
Created January 10, 2011 05:26
Resources for the i9 Web Workshop
Have you setup your laptop for the session? if not see instructions further..
------------------------------------------------------------------------------
Welcome!
Today we are going to make a basic website using some of the main components
of HTML with a little CSS to give you an idea.
As I want you focussed on writing good HTML and CSS, I don't want you
too fussed on the aesthetics(look and feel) and the actual content of the site.
@evolve2k
evolve2k / HTML tute - stage 1
Created January 10, 2011 06:06
Stage 1 Basics
<!DOCTYPE HTML>
<html>
<head>
<meta charset='utf-8'>
</head>
<body>
</body>
</html>