Skip to content

Instantly share code, notes, and snippets.

View novohispano's full-sized avatar

Jorge Téllez novohispano

View GitHub Profile
gem 'minitest', '>= 5.0.0'
require 'minitest/autorun'
require_relative 'beer_song'
class BeerSongTest < Minitest::Test
def test_the_first_verse
expected = "99 bottles of beer on the wall, 99 bottles of beer.\n" \
"Take one down and pass it around, 98 bottles of beer on the wall.\n"
assert_equal expected, BeerSong.new.verse(99)
end

The Turing School of Software & Design is a 501(c)3 non-profit school located in Denver, Colorado. Our primary program focuses on Ruby, Rails, and JavaScript across four six-week semesters for a total engagement of 27 weeks.

In March of 2015 we joined with a collective of other training providers to form the New Economy Skills Training Association (NESTA). That organization put together a list of outcomes data points that member organizations would publish in the future.

This is the 2015 Outcomes Report for Turing. The following data represents the 1406, 1407, 1409, 1410, 1412, 1502, 1503, and 1505 cohorts of the Turing School, who graduated between December 2014 and December 2015.

Completion Rates

  • Total students who could have graduated: 136
  • Number of students who are still enrolled: 4 (due to repeated modules / breaks)
@wh1tney
wh1tney / deploy-static-site-heroku.md
Last active April 23, 2024 17:49
How to deploy a static website to Heroku

Gist

This is a quick tutorial explaining how to get a static website hosted on Heroku.

Why do this?

Heroku hosts apps on the internet, not static websites. To get it to run your static portfolio, personal blog, etc., you need to trick Heroku into thinking your website is a PHP app. This 6-step tutorial will teach you how.

Basic Assumptions

require 'spec_helper'
describe ApplicationController do
describe "#require_login" do
context "when the user is logged in" do
it "does nothing" do
end
end
context "when the user is not logged in" do
@them0nk
them0nk / rspec_rails_cheetsheet.rb
Created March 23, 2012 03:39
Rspec Rails cheatsheet (include capybara matchers)
#Model
@user.should have(1).error_on(:username) # Checks whether there is an error in username
@user.errors[:username].should include("can't be blank") # check for the error message
#Rendering
response.should render_template(:index)
#Redirecting
response.should redirect_to(movies_path)
@zhengjia
zhengjia / capybara cheat sheet
Created June 7, 2010 01:35
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')