Sha256: 3fadf03aad6ee36a3c9a13b132d85fcc52517ee7a2a332684489cec9e210e2f5

Contents?: true

Size: 348 Bytes

Versions: 3

Compression:

Stored size: 348 Bytes

Contents

require: "lib/stringio"

FancySpec describe: StringIO with: {
  before_each: {
    @s = StringIO new
  }

  it: "returns the empty string on initialization" with: 'string when: {
    @s string is: ""
  }

  it: "appends strings to its string value" with: '<< when: {
    @s << "foo"
    @s << "\n"
    @s << "bar"
    @s string is: "foo\nbar"
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fancy-0.10.0 tests/stringio.fy
fancy-0.9.0 tests/stringio.fy
fancy-0.8.0 tests/stringio.fy