hirobumi-chocolate_disco-jruby 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/chocolate_disco/version.rb +1 -1
- data/test/test_helper.rb +17 -1
- data/test/unit/chocolate_disco_test.rb +20 -3
- metadata +2 -2
data/test/test_helper.rb
CHANGED
@@ -7,4 +7,20 @@ require 'test/unit'
|
|
7
7
|
gem 'thoughtbot-shoulda', '>= 2.10.1'
|
8
8
|
require 'shoulda'
|
9
9
|
|
10
|
-
require File.dirname(__FILE__) + '/../lib/chocolate_disco'
|
10
|
+
require File.dirname(__FILE__) + '/../lib/chocolate_disco'
|
11
|
+
|
12
|
+
module Test
|
13
|
+
module Unit
|
14
|
+
class TestCase
|
15
|
+
|
16
|
+
private
|
17
|
+
|
18
|
+
def chocolate_disco_root(*args)
|
19
|
+
File.expand_path(File.join(File.dirname(__FILE__), '..', *args))
|
20
|
+
end # def library_path(*args)
|
21
|
+
|
22
|
+
alias :cd_root :chocolate_disco_root
|
23
|
+
|
24
|
+
end # class TestCase
|
25
|
+
end # module Unit
|
26
|
+
end # module Test
|
@@ -2,15 +2,32 @@ require File.dirname(__FILE__) + '/../test_helper'
|
|
2
2
|
|
3
3
|
class ChocolateDiscoTest < Test::Unit::TestCase
|
4
4
|
|
5
|
-
|
5
|
+
def setup
|
6
|
+
end # def setup
|
7
|
+
|
8
|
+
def teardown
|
9
|
+
end # def teardown
|
10
|
+
|
11
|
+
context 'bin/chocolate_disco(.bat)' do
|
6
12
|
|
7
|
-
should '
|
13
|
+
should 'exist' do
|
14
|
+
|
15
|
+
# for the *NIX systems.
|
16
|
+
path = chocolate_disco_root(%w(bin chocolate_disco))
|
17
|
+
assert(File.exists?(path) && File.file?(path) && !File.directory?(path), 'not found')
|
18
|
+
assert(File.executable?(path), 'is not executable')
|
19
|
+
|
20
|
+
# TODO: for the Windows-like systems.
|
21
|
+
|
22
|
+
end
|
23
|
+
|
24
|
+
should 'have more tests' do
|
8
25
|
flunk('TODO')
|
9
26
|
end
|
10
27
|
|
11
28
|
end
|
12
29
|
|
13
|
-
context '
|
30
|
+
context 'Chocolate Disco' do
|
14
31
|
|
15
32
|
should 'have tests' do
|
16
33
|
flunk('TODO')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hirobumi-chocolate_disco-jruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hirobumi Hama
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-04-
|
12
|
+
date: 2009-04-17 00:00:00 -07:00
|
13
13
|
default_executable: chocolate_disco
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|