Skip to content

Instantly share code, notes, and snippets.

View pacuna's full-sized avatar

Pablo Acuña pacuna

  • Spotify
  • Austin, TX
View GitHub Profile
describe 'POST #create' do
it "saves the post to the db" do
expect{
post :create, :post => {:title => "The title", :body => "The Body"}
}.to change(Post, :count).by(1)
end
it "redirects to @post" do
@post = {:title => 'The title', :body => 'The body'}
post :create, :post => @post
@pacuna
pacuna / composer.json
Created December 19, 2013 06:45
composer.json file for running Laravel 4 on dokku
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"laravel/framework": "4.1.*",
"way/generators": "dev-master",
"cartalyst/sentry": "2.0.*",
"jasonlewis/basset": "dev-master",