TheStandardLibrarians/blog — pull request #12 by el3ctro- (2014-06-01 00:18:10+00:00)
Title: Joshua

Hello,

I have added support for RSpec and Capybara. I also had to get Postgres working on my local machine.

I am using environment variables to set up the database, please set your ENV['DATABASE_URL'] in Linux by typing export=postgres:///blog

Second, to run a local WEBRick, you need to run "rackup config.ru"
This will run the app. This is due to running 'require sinatra/base', and the need to have "App.run!" in the code. Leaving this code in app.rb will cause RSpec to hang in server mode and not finish its task at hand.

navigate to the 'blog' folder and type "rspec" to run the specs and see them pass.