Class: TarkaMatchers::Helpers::Expectation::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/tarka_matchers/helpers/expectation/result.rb

Class Method Summary collapse

Class Method Details

.pass?(&b) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
8
9
10
11
12
# File 'lib/tarka_matchers/helpers/expectation/result.rb', line 5

def self.pass? &b
	error = true
	begin
		b.call
	rescue RSpec::Expectations::ExpectationNotMetError => error
	end
	error
end