updates from Production

This commit is contained in:
Lee Lawlor
2015-03-23 10:37:17 -04:00
parent bf1fc08978
commit a5871fabf6
8 changed files with 82 additions and 103 deletions

View File

@ -26,6 +26,11 @@ require 'spec_helper'
describe Feed do
it "should not include location in feed.to_json" do
feed = Feed.new
JSON.parse(feed.to_json).keys.include?('location').should eq(false)
end
it "should close the connection when an exception is raised" do
# use a single connection for both queries
connection = ActiveRecord::Base.connection