Sha256: 654a69445d213d495a9694ad6b58a72aafd6d4067a644f85202bd66e99b21484
Contents?: true
Size: 445 Bytes
Versions: 3
Compression:
Stored size: 445 Bytes
Contents
require 'cooperator' class Failure prepend Cooperator def perform $before = true failure! $after = true end end prepare do $before = false $after = false end subject Cooperator spec '.perform runs until #failure! is called' do Failure.perform assert $before refute $after end spec '.perform returns a failure context' do context = Failure.perform assert context, :failure? refute context, :success? end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cooperator-0.1.2 | spec/failure.rb |
cooperator-0.1.1 | spec/failure.rb |
cooperator-0.1.0 | spec/failure.rb |