Sha256: 7762f0d0f479f9a0eedf4b8c4dfc27b07295668b9c6339ed87af18f5cf0169ff

Contents?: true

Size: 609 Bytes

Versions: 15

Compression:

Stored size: 609 Bytes

Contents

riml_include 'dsl.riml'

class BeforeHookSpec
  defm describe
    return 'Before hooks'
  end

  defm before
    self.stuff = 'foo'
  end

  defm it_has_stuff_from_before
    expect(self.stuff).to_equal('foo')
  end

  defm it_still_has_stuff_from_before
    expect(self.stuff).to_equal('foo')
  end
end

class BeforeEachHookSpec
  defm describe
    return 'Before_each hooks'
  end

  defm before_each
    self.stuff = 'foo'
  end

  defm it_has_stuff_from_before_each
    expect(self.stuff).to_equal('foo')
  end

  defm it_still_has_stuff_from_before_each
    expect(self.stuff).to_equal('foo')
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
speckle-0.1.18 spec/before_hooks_spec.riml
speckle-0.1.17 spec/before_hooks_spec.riml
speckle-0.1.16 spec/before_hooks_spec.riml
speckle-0.1.15 spec/before_hooks_spec.riml
speckle-0.1.14 spec/before_hooks_spec.riml
speckle-0.1.13 spec/before_hooks_spec.riml
speckle-0.1.12 spec/before_hooks_spec.riml
speckle-0.1.11 spec/before_hooks_spec.riml
speckle-0.1.10 spec/before_hooks_spec.riml
speckle-0.1.9 spec/before_hooks_spec.riml
speckle-0.1.8 spec/before_hooks_spec.riml
speckle-0.1.7 spec/before_hooks_spec.riml
speckle-0.1.4 spec/before_hooks_spec.riml
speckle-0.1.3 spec/before_hooks_spec.riml
speckle-0.1.2 spec/before_hooks_spec.riml