Skip to content

Commit

Permalink
setup rspec
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorenzo Tello committed Jul 13, 2017
1 parent b9e09cb commit 1d89400
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,4 @@ capybara-*html

# RSpec
/spec/reports/
.rspec_status
4 changes: 3 additions & 1 deletion .rspec
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
--format documentation
--color
--require byebug
--require spec_helper
--format documentation
9 changes: 9 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
require "bundler/setup"
require "logga"
require 'factory_girl'

require 'simplecov'
SimpleCov.start

RSpec.configure do |config|
# Enable flags like --only-failures and --next-failure
Expand All @@ -11,4 +15,9 @@
config.expect_with :rspec do |c|
c.syntax = :expect
end

config.include FactoryGirl::Syntax::Methods
config.before(:suite) do
FactoryGirl.find_definitions
end
end

0 comments on commit 1d89400

Please sign in to comment.