Permalink
Browse files

install rspec , rspec-rails

  • Loading branch information...
rociiu committed May 9, 2011
1 parent bbe5cf9 commit cc86d4d44c4da13d624394c5e5420acc45370d6f
Showing with 48 additions and 3 deletions.
  1. +1 −0 .rspec
  2. +4 −3 Gemfile
  3. +16 −0 Gemfile.lock
  4. +27 −0 spec/spec_helper.rb
View
1 .rspec
@@ -0,0 +1 @@
+--colour
View
@@ -37,6 +37,7 @@ gem 'ruby-debug'
# Bundle gems for the local environment. Make sure to
# put test-only gems in this group so their generators
# and rake tasks are available in development mode:
-# group :development, :test do
-# gem 'webrat'
-# end
+group :development, :test do
+ gem 'rspec'
+ gem "rspec-rails"
+end
View
@@ -33,6 +33,7 @@ GEM
builder (2.1.2)
columnize (0.3.2)
crack (0.1.8)
+ diff-lcs (1.1.2)
erubis (2.6.6)
abstract (>= 1.0.0)
exception_notification_rails3 (1.2.0)
@@ -118,6 +119,19 @@ GEM
rake (0.8.7)
rest-client (1.6.1)
mime-types (>= 1.16)
+ rspec (2.5.0)
+ rspec-core (~> 2.5.0)
+ rspec-expectations (~> 2.5.0)
+ rspec-mocks (~> 2.5.0)
+ rspec-core (2.5.1)
+ rspec-expectations (2.5.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.5.0)
+ rspec-rails (2.5.0)
+ actionpack (~> 3.0)
+ activesupport (~> 3.0)
+ railties (~> 3.0)
+ rspec (~> 2.5.0)
ruby-debug (0.10.4)
columnize (>= 0.1)
ruby-debug-base (~> 0.10.4.0)
@@ -144,6 +158,8 @@ DEPENDENCIES
kaminari
omniauth
rails (= 3.0.5)
+ rspec
+ rspec-rails
ruby-debug
sqlite3
texticle
View
@@ -0,0 +1,27 @@
+# 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
+ # config.mock_with :flexmock
+ # config.mock_with :rr
+ config.mock_with :rspec
+
+ # 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
+end

0 comments on commit cc86d4d

Please sign in to comment.