Module: Minitest::Capybara

Defined in:
lib/minitest/capybara.rb,
lib/minitest/capybara.rb

Constant Summary collapse

@@assertions =
(@@assertions - @@refutations).sort
@@refutations =
@@refutations.map { |s| s.match(/^no_(.*)/)[1] }.sort

Class Method Summary collapse

Class Method Details

.assertionsObject


11
12
13
# File 'lib/minitest/capybara.rb', line 11

def self.assertions
  @@assertions
end

.const_missing(const) ⇒ Object


28
29
30
31
32
33
34
35
# File 'lib/minitest/capybara.rb', line 28

def self.const_missing const
  if :Assertions == const
    warn "Minitest::Capybara::Assertions is deprecated. Please use Capybara::Assertions instead."
    ::Capybara::Assertions
  else
    super const
  end
end

.refutationsObject


15
16
17
# File 'lib/minitest/capybara.rb', line 15

def self.refutations
  @@refutations
end