Skip to content

Commit ef2423d

Browse files
committed
added rspec support files
1 parent b86f322 commit ef2423d

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

.rspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--colour

autotest/discover.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Autotest.add_discovery { "rails" }
2+
Autotest.add_discovery { "rspec2" }

spec/spec_helper.rb

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# This file is copied to spec/ when you run 'rails generate rspec:install'
2+
ENV["RAILS_ENV"] ||= 'test'
3+
require File.expand_path("../../config/environment", __FILE__)
4+
require 'rspec/rails'
5+
6+
# Requires supporting ruby files with custom matchers and macros, etc,
7+
# in spec/support/ and its subdirectories.
8+
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
9+
10+
RSpec.configure do |config|
11+
# == Mock Framework
12+
#
13+
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
14+
#
15+
# config.mock_with :mocha
16+
# config.mock_with :flexmock
17+
# config.mock_with :rr
18+
config.mock_with :rspec
19+
20+
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
21+
config.fixture_path = "#{::Rails.root}/spec/fixtures"
22+
23+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
24+
# examples within a transaction, remove the following line or assign false
25+
# instead of true.
26+
config.use_transactional_fixtures = true
27+
end

0 commit comments

Comments
 (0)