This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TwatsController < ApplicationController | |
def new | |
@twat = Twat.new | |
end | |
end | |
require 'spec_helper' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://colorschemedesigner.com - Awesome web color design tool | |
http://validator.w3.org - W3C Markup Validation Checker | |
Wordpress | |
--------- | |
http://wordpress.stackexchange.com - Wordpress help |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset='utf-8'> | |
</head> | |
<body> | |
</body> | |
</html> |
OlderNewer