October 2011
3 posts
13 tags
Integrations tests and Devise Login
Yesterday I started doing a new project using devise gem to manage login features. When I started to do integration tests using rspec, I found a problem: devise test helpers doesn’t work with rspec integration test.
So this is a quick solution to fix this.
require 'spec_helper'
include Warden::Test::Helpers
describe "UserDashboards" do
before(:each) do
@user =...
7 tags
Short tips to create a great API
The last projects that I have worked had a API for external client access, I learned a lot with those projects and here I gonna share with you what I learned.
HTTP You must to understand how HTTP protocol works. This is the first and more important thing.
Use HTTP verbs - Your api must be able to understand what we expect that it does if for example a request with put verb is received....
7 tags
PostgreSQL and Postgis on Mac OS Lion
Recently I had some problems with Mac OS Lion and I decided to do a clean install.
So all went well until I decided to install PostgreSQL with spatial extension called postgis and so the problems began.
My friend Kleber gave me a Gist with some simple steps to install postgresql and postgis after Lion update. So I was trying to follow those steps but it’s didn’t work.
So I...