Skip to content
Open
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
12 changes: 12 additions & 0 deletions pgq-processors/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@
config.example_status_persistence_file_path = '.rspec_status'

config.expect_with :rspec do |c|
# disable the should syntax...
c.syntax = :expect
# Prevents expectation failure message truncation
c.max_formatted_output_length = nil
c.on_potential_false_positives = :raise
c.strict_predicate_matchers = true
end

config.mock_with :rspec do |c|
c.allow_message_expectations_on_nil = false
c.verify_partial_doubles = true
c.verify_doubled_constant_names = true
c.transfer_nested_constants = false
end
end
15 changes: 13 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
include Warden::Test::Helpers
Warden.test_mode!

RSpec::Matchers.define_negated_matcher :not_eq, :eq
RSpec::Matchers.

RSpec.configure do |config|
RSpec.configure do |config|
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
config.fixture_path = Rails.root.join 'spec/fixtures'

Expand Down Expand Up @@ -182,6 +182,17 @@
config.expect_with :rspec do |c|
# disable the should syntax...
c.syntax = :expect
# Prevents expectation failure message truncation
c.max_formatted_output_length = nil
c.on_potential_false_positives = :raise
c.strict_predicate_matchers = true
end

config.mock_with :rspec do |c|
c.allow_message_expectations_on_nil = false
c.verify_partial_doubles = true
c.verify_doubled_constant_names = true
c.transfer_nested_constants = false
end
end

Expand Down
9 changes: 0 additions & 9 deletions spec/support/rspec_match_failure_patch.rb

This file was deleted.