moonit 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ === 0.1.0 / 2008-08-01
2
+
3
+ * Added the moonit binary to execute manual tests
4
+
1
5
  === 0.0.1 / 2008-03-18
2
6
 
3
7
  * First Release
@@ -4,3 +4,4 @@ README.txt
4
4
  Rakefile
5
5
  lib/moonit.rb
6
6
  test/test_moonit.rb
7
+ bin/moonit
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'rubygems'
4
+ require 'test/unit'
5
+ require 'moonit'
6
+
7
+ ENV['MANUAL'] = 'true'
8
+
9
+ ARGV.each do |file|
10
+ require file
11
+ end
@@ -1,5 +1,5 @@
1
1
  module Moonit
2
- VERSION = '0.0.1'
2
+ VERSION = '0.1.0'
3
3
  end
4
4
  # Moonit
5
5
  # Manual Test Unit Tests
@@ -45,11 +45,12 @@ class Test::Unit::TestCase
45
45
  reason = ask("Why did this fail? ")
46
46
  Proc.new {assert false, reason}
47
47
  end
48
- define_method("test_#{name.gsub(/[^\w]/,'_')}_manual",proc)
48
+ define_method("test_MANUAL_#{name.gsub(/[^\w]/,'_')}",proc)
49
49
  end
50
50
  end
51
51
 
52
- def self.step(description,&block)
53
- ask("#{description} ",&block)
52
+ def self.step(description)
53
+ ask("#{description} ")
54
+ yield if block_given?
54
55
  end
55
56
  end
@@ -4,9 +4,12 @@ require 'moonit'
4
4
 
5
5
  class TestLolz < Test::Unit::TestCase
6
6
  manual_test "Loling the Lulz gives you ROFLZ!" do
7
- step "LOL Lulz"
7
+ step "LOL Lulz" do
8
+ puts "BUTTZ"
9
+ end
8
10
  step "Did we got teh ROFLZ"
9
11
  end
12
+
10
13
  def test_lolz
11
14
  assert true
12
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moonit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Anderson
@@ -9,11 +9,12 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-04-05 00:00:00 -07:00
12
+ date: 2008-08-02 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: highline
17
+ type: :runtime
17
18
  version_requirement:
18
19
  version_requirements: !ruby/object:Gem::Requirement
19
20
  requirements:
@@ -23,18 +24,19 @@ dependencies:
23
24
  version:
24
25
  - !ruby/object:Gem::Dependency
25
26
  name: hoe
27
+ type: :runtime
26
28
  version_requirement:
27
29
  version_requirements: !ruby/object:Gem::Requirement
28
30
  requirements:
29
31
  - - ">="
30
32
  - !ruby/object:Gem::Version
31
- version: 1.5.1
33
+ version: 1.6.0
32
34
  version:
33
35
  description: Baby mix-in for Test::Unit which allows one to specify manual test cases with steps. Manual test cases are a necessary evil in this world and something that I feel is missing sorely (but not sadly) is the ability to keep your manual test cases coupled with your automated test cases. Manual tests playing with automated tests. Of course, the goal of Moonit is to not interfere with automated tests so it is necessary to tell ruby you want to execute your manual tests alongside your automated tests at runtime.
34
36
  email:
35
37
  - adamandersonis@gmail.com
36
- executables: []
37
-
38
+ executables:
39
+ - moonit
38
40
  extensions: []
39
41
 
40
42
  extra_rdoc_files:
@@ -48,6 +50,7 @@ files:
48
50
  - Rakefile
49
51
  - lib/moonit.rb
50
52
  - test/test_moonit.rb
53
+ - bin/moonit
51
54
  has_rdoc: true
52
55
  homepage: http://moonit.rubyforge.org
53
56
  post_install_message:
@@ -71,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
74
  requirements: []
72
75
 
73
76
  rubyforge_project: moonit
74
- rubygems_version: 1.1.0
77
+ rubygems_version: 1.2.0
75
78
  signing_key:
76
79
  specification_version: 2
77
80
  summary: Baby mix-in for Test::Unit which allows one to specify manual test cases with steps