Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ tmp/
*.swp
.redcar
bin/
coverage
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,21 @@ end
group :development, :test do
gem 'fabrication'
gem 'rspec-rails'
gem 'capybara'
gem 'cucumber-rails', require: false
gem "faker"
gem 'pry'
gem 'sqlite3'


end

group :production do
gem 'pg' # ugh heroku
end

group :test do
gem "simplecov", :require => false
gem "mocha"
gem "database_cleaner"
gem "launchy"
Expand Down
6 changes: 6 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ GEM
ffi (~> 1.0.9)
multi_json (~> 1.0.4)
rubyzip
simplecov (0.7.1)
multi_json (~> 1.0)
simplecov-html (~> 0.7.1)
simplecov-html (0.7.1)
slop (2.4.3)
sprockets (2.0.4)
hike (~> 1.2)
Expand Down Expand Up @@ -234,6 +238,7 @@ PLATFORMS
DEPENDENCIES
bson_ext
cancan
capybara
coffee-rails (~> 3.1.0)
cucumber-rails
database_cleaner
Expand All @@ -257,6 +262,7 @@ DEPENDENCIES
sass-rails (~> 3.1.0)
semantic_menu!
simple_form!
simplecov
sqlite3
uglifier
unicorn
Expand Down
8 changes: 8 additions & 0 deletions features/support/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
# newer version of cucumber-rails. Consider adding your own code to a new file
# instead of editing this one. Cucumber will automatically load all features/**/*.rb
# files.
#

require 'simplecov'
SimpleCov.start do
add_filter '/spec/'
add_filter '/config/'
add_filter '/vendor/'
end

require 'cucumber/rails'

Expand Down
9 changes: 9 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
require 'simplecov'
SimpleCov.start do
add_filter '/config/'
add_filter '/vendor/'
add_filter '/features/'
end

ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'
require 'database_cleaner'
require 'capybara/rspec'

# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Expand All @@ -28,4 +36,5 @@
config.before(:each) { reset_email }

config.include Devise::TestHelpers, :type => :controller
config.include Capybara::DSL
end