Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added rspec

  • Loading branch information...
commit 645375d6e29028572b0ac1ee8e09abceee22b7b1 1 parent 3bb77df
@filiptepper authored
Showing with 32 additions and 0 deletions.
  1. +1 −0  .rspec
  2. +4 −0 Gemfile
  3. +15 −0 Gemfile.lock
  4. +12 −0 spec/spec_helper.rb
View
1  .rspec
@@ -0,0 +1 @@
+--color
View
4 Gemfile
@@ -29,6 +29,10 @@ group :assets do
gem 'uglifier', '>= 1.0.3'
end
+group :development, :test do
+ gem 'rspec-rails'
+end
+
group :production do
gem 'unicorn'
end
View
15 Gemfile.lock
@@ -79,6 +79,7 @@ GEM
remote: https://rubygems.org/
specs:
builder (3.1.4)
+ diff-lcs (1.1.3)
erubis (2.7.0)
execjs (1.4.0)
multi_json (~> 1.0)
@@ -125,6 +126,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.3)
+ rspec-rails (2.11.4)
+ actionpack (>= 3.0)
+ activesupport (>= 3.0)
+ railties (>= 3.0)
+ rspec (~> 2.11.0)
sprockets (2.8.0)
hike (~> 1.2)
multi_json (~> 1.0)
@@ -156,6 +170,7 @@ DEPENDENCIES
omniauth-github
pg
rails!
+ rspec-rails
sprockets-rails!
uglifier (>= 1.0.3)
unicorn
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.use_transactional_fixtures = true
+ config.infer_base_class_for_anonymous_controllers = true
+ config.order = 'random'
+end
Please sign in to comment.
Something went wrong with that request. Please try again.