Browse files

Added spec.

  • Loading branch information...
1 parent 927b4b4 commit 84e2a8533c0c1889d683dac209066f1d8d2a51f8 @shageman committed Sep 11, 2012
Showing with 32 additions and 1 deletion.
  1. +1 −0 .rspec
  2. +3 −0 Gemfile
  3. +16 −1 Gemfile.lock
  4. +12 −0 spec/spec_helper.rb
View
1 .rspec
@@ -0,0 +1 @@
+--color
View
3 Gemfile
@@ -2,3 +2,6 @@ source 'https://rubygems.org'
gem 'rails'
+group :test, :development do
+ gem 'rspec-rails'
+end
View
17 Gemfile.lock
@@ -30,6 +30,7 @@ GEM
multi_json (~> 1.0)
arel (3.0.2)
builder (3.0.3)
+ diff-lcs (1.1.3)
erubis (2.7.0)
hike (1.2.1)
i18n (0.6.1)
@@ -67,6 +68,19 @@ GEM
rake (0.9.2.2)
rdoc (3.12)
json (~> 1.4)
+ rspec (2.11.0)
+ rspec-core (~> 2.11.0)
+ rspec-expectations (~> 2.11.0)
+ rspec-mocks (~> 2.11.0)
+ rspec-core (2.11.1)
+ rspec-expectations (2.11.3)
+ diff-lcs (~> 1.1.3)
+ rspec-mocks (2.11.2)
+ rspec-rails (2.11.0)
+ actionpack (>= 3.0)
+ activesupport (>= 3.0)
+ railties (>= 3.0)
+ rspec (~> 2.11.0)
sprockets (2.1.3)
hike (~> 1.2)
rack (~> 1.0)
@@ -82,4 +96,5 @@ PLATFORMS
ruby
DEPENDENCIES
- rails (= 3.2.8)
+ rails
+ rspec-rails
View
12 spec/spec_helper.rb
@@ -0,0 +1,12 @@
+ENV["RAILS_ENV"] ||= 'test'
+require File.expand_path("../../config/environment", __FILE__)
+require 'rspec/rails'
+require 'rspec/autorun'
+
+Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
+
+RSpec.configure do |config|
+ config.fixture_path = "#{::Rails.root}/spec/fixtures"
+ config.use_transactional_fixtures = false
+ config.order = "random"
+end

0 comments on commit 84e2a85

Please sign in to comment.