Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added rspec to the project

  • Loading branch information...
commit 8cc1ba03fe68f8c56dbed1be9f7c1ef06e200453 1 parent 460383a
@kalv-and-tomafro kalv-and-tomafro authored
Showing with 44 additions and 9 deletions.
  1. +1 −0  .rspec
  2. +5 −8 Gemfile
  3. +17 −1 Gemfile.lock
  4. +21 −0 spec/spec_helper.rb
View
1  .rspec
@@ -0,0 +1 @@
+--colour -fn
View
13 Gemfile
@@ -18,17 +18,14 @@ gem 'thin'
gem 'connfu', :path => './vendor/gems/connfu'
+# Bundle is crap so need this for Connfu
gem 'minitest', '2.3.1'
gem 'nokogiri', '1.5.0'
gem 'niceogiri', '0.0.4'
gem 'blather', '0.5.3'
gem 'resque', '1.17.1'
-# Use unicorn as the web server
-# gem 'unicorn'
-
-# Deploy with Capistrano
-# gem 'capistrano'
-
-# To use debugger
-# gem 'ruby-debug19', :require => 'ruby-debug'
+group :test do
+ gem 'rspec-rails'
+ gem 'mocha'
+end
View
18 Gemfile.lock
@@ -3,7 +3,6 @@ PATH
specs:
connfu (0.0.3)
blather (= 0.5.3)
- resque (= 1.17.1)
GEM
remote: http://rubygems.org/
@@ -52,6 +51,7 @@ GEM
execjs
coffee-script-source (1.1.1)
daemons (1.1.4)
+ diff-lcs (1.1.2)
erubis (2.7.0)
eventmachine (0.12.10)
execjs (1.2.0)
@@ -68,6 +68,7 @@ GEM
treetop (~> 1.4.8)
mime-types (1.16)
minitest (2.3.1)
+ mocha (0.9.12)
multi_json (1.0.3)
niceogiri (0.0.4)
nokogiri (>= 1.4.0)
@@ -108,6 +109,19 @@ GEM
redis-namespace (~> 1.0.2)
sinatra (>= 0.9.2)
vegas (~> 0.1.2)
+ rspec (2.6.0)
+ rspec-core (~> 2.6.0)
+ rspec-expectations (~> 2.6.0)
+ rspec-mocks (~> 2.6.0)
+ rspec-core (2.6.4)
+ rspec-expectations (2.6.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.6.0)
+ rspec-rails (2.6.1)
+ actionpack (~> 3.0)
+ activesupport (~> 3.0)
+ railties (~> 3.0)
+ rspec (~> 2.6.0)
sass (3.1.4)
sass-rails (3.1.0.rc.4)
actionpack (~> 3.1.0.rc1)
@@ -147,10 +161,12 @@ DEPENDENCIES
connfu!
jquery-rails
minitest (= 2.3.1)
+ mocha
niceogiri (= 0.0.4)
nokogiri (= 1.5.0)
rails (= 3.1.0.rc4)
resque (= 1.17.1)
+ rspec-rails
sass-rails (~> 3.1.0.rc)
therubyracer-heroku (~> 0.8.1.pre3)
thin
View
21 spec/spec_helper.rb
@@ -0,0 +1,21 @@
+# This file is copied to spec/ when you run 'rails generate rspec:install'
+ENV["RAILS_ENV"] ||= 'test'
+require File.expand_path("../../config/environment", __FILE__)
+require 'rspec/rails'
+
+# 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}
+
+RSpec.configure do |config|
+ # == Mock Framework
+ #
+ # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
+ #
+ config.mock_with :mocha
+
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
+ # examples within a transaction, remove the following line or assign false
+ # instead of true.
+ config.use_transactional_fixtures = true
+end
Please sign in to comment.
Something went wrong with that request. Please try again.