Class: Tryouts::Expectation

Inherits:
Data
  • Object
show all
Defined in:
lib/tryouts/test_case.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



47
48
49
# File 'lib/tryouts/test_case.rb', line 47

def content
  @content
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



47
48
49
# File 'lib/tryouts/test_case.rb', line 47

def type
  @type
end

Instance Method Details

#boolean?Boolean

Returns:

  • (Boolean)


50
# File 'lib/tryouts/test_case.rb', line 50

def boolean? = type == :boolean

#exception?Boolean

Returns:

  • (Boolean)


49
# File 'lib/tryouts/test_case.rb', line 49

def exception? = type == :exception

#false?Boolean

Returns:

  • (Boolean)


52
# File 'lib/tryouts/test_case.rb', line 52

def false? = type == :false

#intentional_failure?Boolean

Returns:

  • (Boolean)


56
# File 'lib/tryouts/test_case.rb', line 56

def intentional_failure? = type == :intentional_failure

#output?Boolean

Returns:

  • (Boolean)


57
# File 'lib/tryouts/test_case.rb', line 57

def output? = type == :output

#performance_time?Boolean

Returns:

  • (Boolean)


55
# File 'lib/tryouts/test_case.rb', line 55

def performance_time? = type == :performance_time

#regex_match?Boolean

Returns:

  • (Boolean)


54
# File 'lib/tryouts/test_case.rb', line 54

def regex_match? = type == :regex_match

#regular?Boolean

Returns:

  • (Boolean)


48
# File 'lib/tryouts/test_case.rb', line 48

def regular? = type == :regular

#result_type?Boolean

Returns:

  • (Boolean)


53
# File 'lib/tryouts/test_case.rb', line 53

def result_type? = type == :result_type

#true?Boolean

Returns:

  • (Boolean)


51
# File 'lib/tryouts/test_case.rb', line 51

def true? = type == :true