Permalink
Browse files

Adding RSpec.

  • Loading branch information...
1 parent c6c59e9 commit 8b53cc93842f2d73487059cf3be6352fd9a5cb07 @lunks lunks committed Jul 5, 2012
Showing with 49 additions and 0 deletions.
  1. +1 −0 .rspec
  2. +15 −0 Gemfile.lock
  3. +32 −0 spec/spec_helper.rb
  4. +1 −0 static_content.gemspec
View
1 .rspec
@@ -0,0 +1 @@
+--colour
View
@@ -36,6 +36,7 @@ GEM
multi_json (~> 1.0)
arel (3.0.2)
builder (3.0.0)
+ diff-lcs (1.1.3)
erubis (2.7.0)
hike (1.2.1)
i18n (0.6.0)
@@ -76,6 +77,19 @@ GEM
rake (0.9.2.2)
rdoc (3.12)
json (~> 1.4)
+ rspec (2.10.0)
+ rspec-core (~> 2.10.0)
+ rspec-expectations (~> 2.10.0)
+ rspec-mocks (~> 2.10.0)
+ rspec-core (2.10.1)
+ rspec-expectations (2.10.0)
+ diff-lcs (~> 1.1.3)
+ rspec-mocks (2.10.1)
+ rspec-rails (2.10.1)
+ actionpack (>= 3.0)
+ activesupport (>= 3.0)
+ railties (>= 3.0)
+ rspec (~> 2.10.0)
sprockets (2.1.3)
hike (~> 1.2)
rack (~> 1.0)
@@ -93,5 +107,6 @@ PLATFORMS
DEPENDENCIES
jquery-rails
+ rspec-rails
sqlite3
static_content!
View
@@ -0,0 +1,32 @@
+# 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
+end
View
@@ -19,4 +19,5 @@ Gem::Specification.new do |s|
# s.add_dependency "jquery-rails"
s.add_development_dependency "sqlite3"
+ s.add_development_dependency "rspec-rails"
end

0 comments on commit 8b53cc9

Please sign in to comment.