Permalink
Browse files

fix specs

  • Loading branch information...
1 parent dc0f80b commit 1e53de61e511381cbf3aa5985b9fd33db2594418 @grosser committed Dec 24, 2011
Showing with 8 additions and 3 deletions.
  1. +2 −2 Gemfile
  2. +6 −1 spec/spec_helper.rb
View
@@ -1,9 +1,9 @@
source :rubygems
-gem 'activerecord', ENV['RAILS']
+gem 'activerecord'
group :dev do
- gem 'actionpack', ENV['RAILS']
+ gem 'rails', ENV['RAILS']
gem 'sqlite3'
gem 'will_paginate'
gem 'rdoc'
View
@@ -7,7 +7,12 @@
require File.expand_path("../init", File.dirname(__FILE__))
-RAILS_ENV = "test"
+module Rails
+ def self.env
+ 'test'
+ end
+end
+
ActiveRecord::Base.configurations = {"test" => {
:adapter => "sqlite3",
:database => ":memory:",

0 comments on commit 1e53de6

Please sign in to comment.