Skip to content

Commit

Permalink
Subhrajit|Added Rspec files generated from rspec:install
Browse files Browse the repository at this point in the history
  • Loading branch information
sroytw committed Mar 12, 2012
1 parent b410a57 commit 1479581
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 0 deletions.
1 change: 1 addition & 0 deletions .rspec
@@ -0,0 +1 @@
--colour
7 changes: 7 additions & 0 deletions Gemfile
Expand Up @@ -8,6 +8,11 @@ gem 'rails', '3.1.3'
gem 'mysql2'


group :development do
gem 'rspec-rails','2.6.1'
end


# Gems used only for assets and not required
# in production environments by default.
group :assets do
Expand All @@ -31,6 +36,8 @@ gem 'jquery-rails'
# gem 'ruby-debug19', :require => 'ruby-debug'

group :test do
gem 'rspec-rails','2.6.1'
gem 'webrat','0.7.1'
# Pretty printed test output
gem 'turn', '~> 0.8.3', :require => false
end
21 changes: 21 additions & 0 deletions Gemfile.lock
Expand Up @@ -39,6 +39,7 @@ GEM
coffee-script-source
execjs
coffee-script-source (1.2.0)
diff-lcs (1.1.3)
erubis (2.7.0)
execjs (1.3.0)
multi_json (~> 1.0)
Expand All @@ -55,6 +56,7 @@ GEM
mime-types (1.17.2)
multi_json (1.1.0)
mysql2 (0.3.11)
nokogiri (1.5.2)
polyglot (0.3.3)
rack (1.3.6)
rack-cache (1.2)
Expand Down Expand Up @@ -83,6 +85,19 @@ GEM
rake (0.9.2.2)
rdoc (3.12)
json (~> 1.4)
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.15)
sass-rails (3.1.5)
actionpack (~> 3.1.0)
Expand All @@ -104,6 +119,10 @@ GEM
uglifier (1.2.3)
execjs (>= 0.3.0)
multi_json (>= 1.0.2)
webrat (0.7.1)
nokogiri (>= 1.2.0)
rack (>= 1.0)
rack-test (>= 0.5.3)

PLATFORMS
ruby
Expand All @@ -113,6 +132,8 @@ DEPENDENCIES
jquery-rails
mysql2
rails (= 3.1.3)
rspec-rails (= 2.6.1)
sass-rails (~> 3.1.5)
turn (~> 0.8.3)
uglifier (>= 1.0.3)
webrat (= 0.7.1)
27 changes: 27 additions & 0 deletions spec/spec_helper.rb
@@ -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 1479581

Please sign in to comment.