twtest 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,10 +20,10 @@ module TaskWarrior
20
20
 
21
21
  protected
22
22
  def export_tasks
23
- JSON[exec('export')]
23
+ JSON[task('export')]
24
24
  end
25
25
 
26
- def exec(cmd)
26
+ def task(cmd)
27
27
  ENV['TASKRC'] = @taskrc_file
28
28
  %x[task #{cmd}]
29
29
  end
@@ -1,7 +1,7 @@
1
1
  module TaskWarrior
2
2
  module Test
3
3
  module Integration
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
6
6
  end
7
7
  end
@@ -6,7 +6,7 @@ class TestTestCase < TaskWarrior::Test::Integration::TestCase
6
6
  # assert_empty(export_tasks)
7
7
 
8
8
  # Use a placeholder as workaround
9
- exec("add placeholder")
9
+ task("add placeholder")
10
10
  assert_equal(1, export_tasks.size)
11
11
  end
12
12
 
@@ -19,8 +19,8 @@ class TestTestCase < TaskWarrior::Test::Integration::TestCase
19
19
  input_file.close
20
20
 
21
21
  # TODO Replace temp file with in-process version
22
- # exec("import <(echo '#{contents.to_json}')")
23
- exec("import #{input_file.path}")
22
+ # task("import <(echo '#{contents.to_json}')")
23
+ task("import #{input_file.path}")
24
24
 
25
25
  tasks = export_tasks
26
26
  assert_equal(1, tasks.size)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twtest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-29 00:00:00.000000000 Z
12
+ date: 2012-07-01 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Provides helpers for writing TaskWarrior integration tests in Ruby
15
15
  email: