Sha256: 15e65d072103e3834f89febd054740856daf5cc8290ec695fdb228ffff7a3fa8

Contents?: true

Size: 435 Bytes

Versions: 1

Compression:

Stored size: 435 Bytes

Contents

describe "Migration", ->
  describe "#update", ->
    it "should be able to set raw_content", ->
      mFile = new Ponytail.Models.Migration({name: "CreateUsers"})
      spyOn(mFile, "getContentOfClass").andReturn("")
      expected = [
        "class CreateUsers < ActiveRecord::Migration",
        "",
        "end",
      ].join("\n")
      mFile.update()
      actual = mFile.get("raw_content")
      expect(actual).toBe(expected)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ponytail-0.6.0 spec/javascripts/ponytail/models/migration_spec.coffee