rspec 2.3
This commit is contained in:
parent
9bcebbd6ab
commit
87caa55b80
3
Gemfile
3
Gemfile
@ -46,8 +46,9 @@ end
|
|||||||
|
|
||||||
group :test do
|
group :test do
|
||||||
gem 'autotest'
|
gem 'autotest'
|
||||||
|
gem 'ZenTest'
|
||||||
gem 'growl-glue'
|
gem 'growl-glue'
|
||||||
gem 'rspec-rails', '>= 2.0.0.beta.18'
|
gem 'rspec-rails', '2.3.1'
|
||||||
gem 'factory_girl_rails'
|
gem 'factory_girl_rails'
|
||||||
gem 'pickle'
|
gem 'pickle'
|
||||||
gem 'capybara'
|
gem 'capybara'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
GIT
|
GIT
|
||||||
remote: git://github.com/floehopper/mocha.git
|
remote: git://github.com/floehopper/mocha.git
|
||||||
revision: 80f28aa72397c814e26a1893b576e768287b3c59
|
revision: 1ed96f77a967b497746176e0b8a46746f5b4d722
|
||||||
specs:
|
specs:
|
||||||
mocha (0.9.10.20101125155727)
|
mocha (0.9.10.20101125155727)
|
||||||
rake
|
rake
|
||||||
@ -70,7 +70,7 @@ GEM
|
|||||||
term-ansicolor (~> 1.0.4)
|
term-ansicolor (~> 1.0.4)
|
||||||
cucumber-rails (0.3.2)
|
cucumber-rails (0.3.2)
|
||||||
cucumber (>= 0.8.0)
|
cucumber (>= 0.8.0)
|
||||||
culerity (0.2.12)
|
culerity (0.2.13)
|
||||||
custom_fields (1.0.0.beta2)
|
custom_fields (1.0.0.beta2)
|
||||||
activesupport (>= 3.0.0)
|
activesupport (>= 3.0.0)
|
||||||
locomotive_carrierwave
|
locomotive_carrierwave
|
||||||
@ -254,6 +254,7 @@ PLATFORMS
|
|||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
RedCloth
|
RedCloth
|
||||||
|
ZenTest
|
||||||
actionmailer-with-request
|
actionmailer-with-request
|
||||||
autotest
|
autotest
|
||||||
bson_ext (= 1.1.5)
|
bson_ext (= 1.1.5)
|
||||||
@ -284,7 +285,7 @@ DEPENDENCIES
|
|||||||
pickle
|
pickle
|
||||||
rails (>= 3.0.0)
|
rails (>= 3.0.0)
|
||||||
rmagick (= 2.12.2)
|
rmagick (= 2.12.2)
|
||||||
rspec-rails (>= 2.0.0.beta.18)
|
rspec-rails (= 2.3.1)
|
||||||
ruby-debug
|
ruby-debug
|
||||||
ruby-debug19
|
ruby-debug19
|
||||||
rubyzip
|
rubyzip
|
||||||
|
3
doc/TODO
3
doc/TODO
@ -3,6 +3,9 @@ BOARD:
|
|||||||
x jammit-s3: assets
|
x jammit-s3: assets
|
||||||
x copy assets.yml config file when using it as gem (http://asciicasts.com/episodes/218-making-generators-in-rails-3)
|
x copy assets.yml config file when using it as gem (http://asciicasts.com/episodes/218-making-generators-in-rails-3)
|
||||||
x import theme without delayed_job
|
x import theme without delayed_job
|
||||||
|
x rspec 2.3
|
||||||
|
- ruby 1.9.2:
|
||||||
|
- DelayedJob not working
|
||||||
|
|
||||||
BACKLOG:
|
BACKLOG:
|
||||||
|
|
||||||
|
@ -1,15 +1,29 @@
|
|||||||
# This file is copied to ~/spec when you run 'ruby script/generate rspec'
|
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
||||||
# from the project root directory.
|
|
||||||
ENV["RAILS_ENV"] ||= 'test'
|
ENV["RAILS_ENV"] ||= 'test'
|
||||||
require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
|
require File.expand_path("../../config/environment", __FILE__)
|
||||||
require 'rspec/rails'
|
require 'rspec/rails'
|
||||||
|
|
||||||
# Requires supporting files with custom matchers and macros, etc,
|
# Requires supporting ruby files with custom matchers and macros, etc,
|
||||||
# in ./support/ and its subdirectories.
|
# in spec/support/ and its subdirectories.
|
||||||
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
|
||||||
|
|
||||||
Rspec.configure do |config|
|
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 :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
|
||||||
|
|
||||||
config.before(:each) do
|
config.before(:each) do
|
||||||
Locomotive.config.heroku = false
|
Locomotive.config.heroku = false
|
||||||
@ -27,3 +41,35 @@ Rspec.configure do |config|
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
# # This file is copied to ~/spec when you run 'ruby script/generate rspec'
|
||||||
|
# # from the project root directory.
|
||||||
|
# ENV["RAILS_ENV"] ||= 'test'
|
||||||
|
# require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
|
||||||
|
# require 'rspec/rails'
|
||||||
|
#
|
||||||
|
# # Requires supporting files with custom matchers and macros, etc,
|
||||||
|
# # in ./support/ and its subdirectories.
|
||||||
|
# Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
||||||
|
#
|
||||||
|
# Rspec.configure do |config|
|
||||||
|
# config.expect_with :rspec
|
||||||
|
# config.mock_with :mocha
|
||||||
|
#
|
||||||
|
# config.before(:each) do
|
||||||
|
# Locomotive.config.heroku = false
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# require 'database_cleaner'
|
||||||
|
# config.before(:suite) do
|
||||||
|
# DatabaseCleaner.strategy = :truncation
|
||||||
|
# DatabaseCleaner.orm = "mongoid"
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# config.before(:each) do
|
||||||
|
# if self.described_class != Locomotive::Import::Job
|
||||||
|
# DatabaseCleaner.clean
|
||||||
|
# end
|
||||||
|
# end
|
||||||
|
# end
|
||||||
|
Loading…
Reference in New Issue
Block a user