Skip to content

Instantly share code, notes, and snippets.

View GA-Fall's full-sized avatar

GA-Fall

  • General Assembly
  • Los Angeles
View GitHub Profile
@GA-Fall
GA-Fall / rspec.md
Last active August 29, 2015 14:08
RSPEC Testing QuickStart

#Quick Steps for Testing Ruby ####If you always where a condom, or just don't care about getting tested, skip this section to begin the rails basics section. #YOLO. Obviously, testing is pretty important and shit, so here is a quick breakdown of how to set up the RSPEC testing suite and a link to some resources for formulating reasonable tests.

$ gem install rspec

The next several steps will create a ruby script in the terminal, initialize rspec, and open in sublime.

$ mkdir test_directory
$ cd test_directory
@GA-Fall
GA-Fall / rails_quickstart.md
Last active August 29, 2015 14:08
Rails Quickstart Steps

#Rails Basics Quick Start

$ rails new 'your app name' --skip-active-record 

alternatively -OT can be substituted for --skip-active record. The O is the skip active record equivalent, and that T, yep it skips testing.

The gemfile loads all of the gem configurations and dependencies you will need for your application. This is a top-level file within your app, called, you guessed it, gemfile.

Insert this line : gem 'mongoid', github : 'mongoid/mongoid' you have to run bundle in your terminal to execute gem installs.

@GA-Fall
GA-Fall / git steps.md
Last active August 29, 2015 14:08
Using Git

#Git Basics Do this before starting getting to deep into your rails projecct. Pro Tip: this is how you deploy your shit to Heroku.

##Setting up a local repo

$ git init

Initializes an empty repository in the current working directory

$ git add -A