Permalink
Browse files

chore(rspec): update rspec & tighten up spec_helper

  • Loading branch information...
stevenosloan committed Dec 2, 2015
1 parent 7ac5ee3 commit a0665268f6b595973173bcf8f26417f0299fac7f
Showing with 21 additions and 5 deletions.
  1. +2 −1 .gitignore
  2. +2 −1 .rspec
  3. +1 −3 spec/lib/slack-notifier_spec.rb
  4. +16 −0 spec/spec_helper.rb
@@ -5,4 +5,5 @@ Gemfile.lock
.ruby-gemset
.env
*.gem
coverage
coverage
spec/examples.txt
3 .rspec
@@ -1 +1,2 @@
--color --format 'documentation'
--color
--require 'spec_helper'
@@ -1,6 +1,4 @@
require 'spec_helper'

describe Slack::Notifier do
RSpec.describe Slack::Notifier do
subject { described_class.new 'http://example.com' }

describe '#initialize' do
@@ -3,8 +3,24 @@
require 'pry' if ENV['DEBUG']

RSpec.configure do |config|
config.expect_with :rspec do |expectations|
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
end

config.mock_with :rspec do |mocks|
mocks.verify_doubled_constant_names = true
mocks.verify_partial_doubles = true
end

config.filter_run :focus
config.run_all_when_everything_filtered = true
config.disable_monkey_patching!

config.example_status_persistence_file_path = 'spec/examples.txt'
config.warnings = true

config.default_formatter = 'doc' if config.files_to_run.one?

config.order = :random
Kernel.srand config.seed
end

0 comments on commit a066526

Please sign in to comment.