Sha256: d630d588a24107ea356b0b014a31593d4dd0cca9c2d04a0f685420f5a5881366

Contents?: true

Size: 208 Bytes

Versions: 5

Compression:

Stored size: 208 Bytes

Contents

require 'tspec'

def message
  'hello'
end.return(String)

def string_or_float
  ['hello', 3.14].sample
end.return(String, Float)

def message_list
  %w(hello ruby world)
end.return([String])

p message_list

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tspec-0.5.0 examples/return_success.rb
tspec-0.4.0 examples/return_success.rb
tspec-0.3.0 examples/return_success.rb
tspec-0.2.0 examples/return_success.rb
tspec-0.1.0 examples/return_success.rb