Browse Source

confs, refactor

pull/1/head
Nicolae Claudius 13 years ago
parent
commit
9de0bb0aa4
  1. 4
      .rspec
  2. 1
      .rvmrc
  3. 3
      spec/factories.rb
  4. 5
      spec/spec_helper.rb

4
.rspec

@ -1 +1,3 @@
--colour --format nested
--color
--drb

1
.rvmrc

@ -0,0 +1 @@
rvm use 1.9.2@global --create

3
spec/factories.rb

@ -1,15 +1,12 @@
FactoryGirl.define do FactoryGirl.define do
factory :user do factory :user do
end end
factory :domain do factory :domain do
end end
factory :record do factory :record do
end end
end end

5
spec/spec_helper.rb

@ -1,9 +1,6 @@
require 'rubygems' require 'rubygems'
require 'spork' require 'spork'
# Loading more in this block will cause your tests to run faster. However,
# if you change any configuration or code from libraries loaded here, you'll
# need to restart spork for it take effect.
Spork.prefork do Spork.prefork do
ENV["RAILS_ENV"] ||= 'test' ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../../config/environment", __FILE__) require File.expand_path("../../config/environment", __FILE__)
@ -16,7 +13,5 @@ Spork.prefork do
end end
Spork.each_run do Spork.each_run do
# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f} Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
end end

Loading…
Cancel
Save