Sha256: 1c1bd4b860a8f0b1f9bc382265730bac50736975f99f9b19b8ffee600301f4a3
Contents?: true
Size: 639 Bytes
Versions: 3
Compression:
Stored size: 639 Bytes
Contents
require 'minitest/autorun' require 'twtest' require 'twdeps' require 'helpers/plain_graph_parser.rb' module TaskWarrior module Test module Fixtures def fixture(name) File.join(File.dirname(__FILE__), 'fixtures', name) end end module Validations def assert_valid(task) assert(task.valid?, error_message(task.errors)) end def assert_invalid(task) assert(task.invalid?, 'Expect validation to fail') end def error_message(errors) errors.each_with_object([]){|e, result| result << e.join(' ') }.join("\n") end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
twdeps-1.0.2 | test/test_helper.rb |
twdeps-1.0.1 | test/test_helper.rb |
twdeps-1.0.0 | test/test_helper.rb |