Sha256: 3c5601138f450577e3ed296760665f85aeacd85417acc62a417f9f0d9d58c11f
Contents?: true
Size: 322 Bytes
Versions: 5
Compression:
Stored size: 322 Bytes
Contents
require "spec_helper" Task = Saber::Task class Task::HelloTest < Task::Base desc "hello", "hello" def hello(*args) args end end xdescribe Task do it "(complete example)" do expect(Task["hello_test"]).to be(Task::HelloTest) expect(Task["hello_test"].invoke(:hello, [1, 2])).to eq([1, 2]) end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
saber-1.2.4 | spec/saber/task_spec.rb |
saber-1.2.3 | spec/saber/task_spec.rb |
saber-1.2.2 | spec/saber/task_spec.rb |
saber-1.2.1 | spec/saber/task_spec.rb |
saber-1.2.0 | spec/saber/task_spec.rb |