Sha256: 6181a4386d3d9071b46ebae1035857c8bba00ee0ce43e328f7e4536b7d16e01b

Contents?: true

Size: 250 Bytes

Versions: 6

Compression:

Stored size: 250 Bytes

Contents

class Mumukit::Assistant::Rule::ErrorContains < Mumukit::Assistant::Rule::SubmissionErrored
  def initialize(message, text)
    super(message)
    @text = text
  end

  def matches?(submission)
    super && submission.result.include?(@text)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mumukit-assistant-0.4.0 lib/mumukit/assistant/rule/error_contains.rb
mumukit-assistant-0.3.0 lib/mumukit/assistant/rule/error_contains.rb
mumukit-assistant-0.2.1 lib/mumukit/assistant/rule/error_contains.rb
mumukit-assistant-0.2.0 lib/mumukit/assistant/rule/error_contains.rb
mumukit-assistant-0.1.1 lib/mumukit/assistant/rule/error_contains.rb
mumukit-assistant-0.1.0 lib/mumukit/assistant/rule/error_contains.rb