aboutsummaryrefslogtreecommitdiffstats
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorKir2012-01-30 21:05:11 +0200
committerKir2012-01-30 21:05:11 +0200
commitb3de1169261f2956d519e94e0e4e186e5cfc7aca (patch)
tree964362a857ae980c550cf1a676665bdc3471d103 /spec/spec_helper.rb
parent18fcbf4838a3f2835edd526a1bf77f1b846d4e25 (diff)
downloadinboxes-b3de1169261f2956d519e94e0e4e186e5cfc7aca.tar.bz2
Adding tests
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb14
1 files changed, 6 insertions, 8 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 5caa0f5..045de4d 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -3,6 +3,8 @@ $LOAD_PATH.unshift(File.dirname(__FILE__))
require 'rails'
require 'active_record'
require 'inboxes'
+require 'factory_girl'
+
# require 'database_cleaner'
# Ensure we use 'syck' instead of 'psych' in 1.9.2
# RubyGems >= 1.5.0 uses 'psych' on 1.9.2, but
@@ -15,15 +17,11 @@ end
# require 'fake_gem'
require 'fake_app'
-require 'rspec/rails'
# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
-# RSpec.configure do |config|
-# config.mock_with :rr
-# config.before :all do
-# # ActiveRecord::Base.connection.execute 'CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))' unless ActiveRecord::Base.connection.table_exists? 'users'
-# # CreateAllTables.up unless ActiveRecord::Base.connection.table_exists? 'users'
-# end
-# end \ No newline at end of file
+RSpec.configure do |config|
+ config.include Devise::TestHelpers, :type => :controller
+ config.color_enabled = true
+end \ No newline at end of file