oktest 1.0.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
3
  ###
4
- ### $Release: 1.0.1 $
4
+ ### $Release: 1.2.0 $
5
5
  ### $Copyright: copyright(c) 2011-2021 kuwata-lab.com all rights reserved $
6
6
  ### $License: MIT License $
7
7
  ###
@@ -37,6 +37,8 @@ How to release:
37
37
  $ git add -p CHANGES.md
38
38
  $ git commit -m "ruby: update 'CHANGES.md'"
39
39
  $ git log -1
40
+ $ cid=$(git log -1 | awk 'NR==1{print $2}')
41
+ $ echo $cid
40
42
  $ rake package RELEASE=#{rel}
41
43
  $ rake package:extract # confirm files in gem file
42
44
  $ pushd #{proj}-#{rel}/data; find . -type f; popd
@@ -48,7 +50,8 @@ How to release:
48
50
  $ git push --tags
49
51
  $ rake clean
50
52
  $ git checkout ruby
51
- $ git cherry-pick xxxxxxxxx # cherry-pick update of CHANGES.md
53
+ $ git log -1 $cid
54
+ $ git cherry-pick $cid # cherry-pick update of CHANGES.md
52
55
  END
53
56
  end
54
57
 
@@ -29,6 +29,7 @@ Oktest.scope do
29
29
  <% for k in 1..nspecs %>
30
30
  spec "#<%= k %>: 1+1 should be 2" do
31
31
  ok {1+1} == 2
32
+ ok {1+1} == 2
32
33
  end
33
34
  <% end %>
34
35
 
@@ -54,6 +55,7 @@ RSpec.describe "Example #<%= i %>" do
54
55
  <% for k in 1..nspecs %>
55
56
  it "#<%= k %>: 1+1 should be 2" do
56
57
  expect(1+1).to eq 2
58
+ expect(1+1).to eq 2
57
59
  end
58
60
  <% end %>
59
61
 
@@ -80,6 +82,7 @@ describe "Example #<%= i %>" do
80
82
  <% for k in 1..nspecs %>
81
83
  it "#<%= k %>: 1+1 should be 2" do
82
84
  assert_equal 2, 1+1
85
+ assert_equal 2, 1+1
83
86
  end
84
87
  <% end %>
85
88
 
@@ -107,6 +110,7 @@ class Example_<%= n %>_<%= i %>_TC < Test::Unit::TestCase
107
110
  def test_<%= n %>_<%= i %>_<%= j %>_<%= k %>()
108
111
  #assert 1+1 == 2
109
112
  assert_equal 2, 1+1
113
+ assert_equal 2, 1+1
110
114
  end
111
115
  <% end %>
112
116