lib/protest/runner.rb
def report(test)
      fire_event(:test, Test.new(test))
      test.run(@report)
      fire_event(:pass, PassedTest.new(test))
    rescue Pending => e
      fire_event :pending, PendingTest.new(test, e)
    rescue AssertionFailed => e
      fire_event :failure, FailedTest.new(test, e)
    rescue Exception => e
      raise if e.is_a?(Interrupt)
      fire_event :error, ErroredTest.new(test, e)
    end
# Run a test and report if it passes, fails, or is pending. Takes the name
# of the test as an argument.
Run a test and report if it passes, fails, or is pending. Takes the name
of the test as an argument.
Run a test and report if it passes fails or is pending . Takes the name of the test as an argument .
def report(test)
      fire_event(:test, Test.new(test))
      test.run(@report)
      fire_event(:pass, PassedTest.new(test))
    rescue Pending => e
      fire_event :pending, PendingTest.new(test, e)
    rescue AssertionFailed => e
      fire_event :failure, FailedTest.new(test, e)
    rescue Exception => e
      raise if e.is_a?(Interrupt)
      fire_event :error, ErroredTest.new(test, e)
    end
def report ( test ) fire_event ( :test , Test . new ( test ) ) test . run ( @report ) fire_event ( :pass , PassedTest . new ( test ) ) rescue Pending => e fire_event :pending , PendingTest . new ( test , e ) rescue AssertionFailed => e fire_event :failure , FailedTest . new ( test , e ) rescue Exception => e raise if e . is_a? ( Interrupt ) fire_event :error , ErroredTest . new ( test , e ) end
Run a test and report if it passes, fails, or is pending.
Run a test and report if it passes fails or is pending .
test