Permalink
Browse files

Added rspec and webrat.

  • Loading branch information...
1 parent 9fe58aa commit 9402cd42d1af2d450e71119dc5c31ca50b942851 @knshaum committed Aug 11, 2013
Showing with 74 additions and 0 deletions.
  1. +1 −0 .rspec
  2. +9 −0 Gemfile
  3. +26 −0 Gemfile.lock
  4. +38 −0 spec/spec_helper.rb
View
1 .rspec
@@ -0,0 +1 @@
+--color
View
@@ -10,6 +10,15 @@ gem 'rails', '3.2.14'
gem 'sqlite3', '>= 1.3.1', :group => [ :development, :test ]
gem 'pg', :group => [ :production ]
+group :development do
+ gem 'rspec-rails'
+end
+
+group :test do
+ gem 'rspec'
+ gem 'webrat'
+end
+
# Gems used only for assets and not required
# in production environments by default.
group :assets do
View
@@ -37,6 +37,7 @@ GEM
coffee-script-source
execjs
coffee-script-source (1.6.3)
+ diff-lcs (1.2.4)
erubis (2.7.0)
execjs (1.4.0)
multi_json (~> 1.0)
@@ -51,7 +52,10 @@ GEM
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.23)
+ mini_portile (0.5.1)
multi_json (1.7.8)
+ nokogiri (1.6.0)
+ mini_portile (~> 0.5.0)
pg (0.16.0)
polyglot (0.3.3)
rack (1.4.5)
@@ -79,6 +83,21 @@ GEM
rake (10.1.0)
rdoc (3.12.2)
json (~> 1.4)
+ rspec (2.14.1)
+ rspec-core (~> 2.14.0)
+ rspec-expectations (~> 2.14.0)
+ rspec-mocks (~> 2.14.0)
+ rspec-core (2.14.4)
+ rspec-expectations (2.14.1)
+ diff-lcs (>= 1.1.3, < 2.0)
+ rspec-mocks (2.14.3)
+ rspec-rails (2.14.0)
+ actionpack (>= 3.0)
+ activesupport (>= 3.0)
+ railties (>= 3.0)
+ rspec-core (~> 2.14.0)
+ rspec-expectations (~> 2.14.0)
+ rspec-mocks (~> 2.14.0)
sass (3.2.10)
sass-rails (3.2.6)
railties (~> 3.2.0)
@@ -99,6 +118,10 @@ GEM
uglifier (2.1.2)
execjs (>= 0.3.0)
multi_json (~> 1.0, >= 1.0.2)
+ webrat (0.7.3)
+ nokogiri (>= 1.2.0)
+ rack (>= 1.0)
+ rack-test (>= 0.5.3)
PLATFORMS
ruby
@@ -108,6 +131,9 @@ DEPENDENCIES
jquery-rails
pg
rails (= 3.2.14)
+ rspec
+ rspec-rails
sass-rails (~> 3.2.3)
sqlite3 (>= 1.3.1)
uglifier (>= 1.0.3)
+ webrat
View
@@ -0,0 +1,38 @@
+# 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'
+require 'rspec/autorun'
+
+# 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
+ # config.mock_with :flexmock
+ # config.mock_with :rr
+
+ # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
+ config.fixture_path = "#{::Rails.root}/spec/fixtures"
+
+ # 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
+
+ # If true, the base class of anonymous controllers will be inferred
+ # automatically. This will be the default behavior in future versions of
+ # rspec-rails.
+ config.infer_base_class_for_anonymous_controllers = false
+
+ # Run specs in random order to surface order dependencies. If you find an
+ # order dependency and want to debug it, you can fix the order by providing
+ # the seed, which is printed after each run.
+ # --seed 1234
+ config.order = "random"
+end

0 comments on commit 9402cd4

Please sign in to comment.