Skip to content

Commit

Permalink
Fully set up
Browse files Browse the repository at this point in the history
  • Loading branch information
Spaceghost committed Dec 2, 2011
1 parent f51f4aa commit b37d750
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 254 deletions.
1 change: 1 addition & 0 deletions .rspec
@@ -0,0 +1 @@
--colour
3 changes: 1 addition & 2 deletions Gemfile
Expand Up @@ -18,12 +18,11 @@ group :assets do
end end


group :development do group :development do
gem 'rspec-rails' gem 'rspec-rails', '~> 2.7.0'
end end


group :test do group :test do
gem 'rr' gem 'rr'
gem 'rspec-rails'
gem 'cucumber-rails' gem 'cucumber-rails'
# gem 'email_spec' # gem 'email_spec'
gem 'capybara' gem 'capybara'
Expand Down
24 changes: 13 additions & 11 deletions Gemfile.lock
Expand Up @@ -150,17 +150,19 @@ GEM
remarkable_mongoid (0.6.0) remarkable_mongoid (0.6.0)
remarkable_activemodel (~> 4.0.0.alpha4) remarkable_activemodel (~> 4.0.0.alpha4)
rr (1.0.4) rr (1.0.4)
rspec (2.8.0.rc1) rspec (2.7.0)
rspec-core (= 2.8.0.rc1) rspec-core (~> 2.7.0)
rspec-expectations (= 2.8.0.rc1) rspec-expectations (~> 2.7.0)
rspec-mocks (= 2.8.0.rc1) rspec-mocks (~> 2.7.0)
rspec-core (2.8.0.rc1) rspec-core (2.7.1)
rspec-expectations (2.8.0.rc1) rspec-expectations (2.7.0)
diff-lcs (~> 1.1.2) diff-lcs (~> 1.1.2)
rspec-mocks (2.8.0.rc1) rspec-mocks (2.7.0)
rspec-rails (1.3.2) rspec-rails (2.7.0)
rack (>= 1.0.0) actionpack (~> 3.0)
rspec (>= 1.3.0) activesupport (~> 3.0)
railties (~> 3.0)
rspec (~> 2.7.0)
rubyzip (0.9.5) rubyzip (0.9.5)
selenium-webdriver (2.14.0) selenium-webdriver (2.14.0)
childprocess (>= 0.2.1) childprocess (>= 0.2.1)
Expand Down Expand Up @@ -217,7 +219,7 @@ DEPENDENCIES
rails rails
remarkable_mongoid remarkable_mongoid
rr rr
rspec-rails rspec-rails (~> 2.7.0)
simplecov simplecov
simplecov-rcov simplecov-rcov
spork (~> 0.9.0rc9) spork (~> 0.9.0rc9)
Expand Down
241 changes: 0 additions & 241 deletions public/index.html

This file was deleted.

43 changes: 43 additions & 0 deletions spec/spec_helper.rb
@@ -0,0 +1,43 @@
# 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
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

# 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

require 'database_cleaner'
config.before(:suite) do
DatabaseCleaner.strategy = :truncation
DatabaseCleaner.orm = "mongoid"
end

config.before(:each) do
DatabaseCleaner.clean
end
end
3 changes: 3 additions & 0 deletions spec/support/mongoid.rb
@@ -0,0 +1,3 @@
RSpec.configure do |config|
config.include Mongoid::Matchers
end

0 comments on commit b37d750

Please sign in to comment.