hola_wenbo 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.
Files changed (3) hide show
  1. data/Rakefile +8 -0
  2. data/test/test_hola_wenbo.rb +19 -0
  3. metadata +5 -2
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ require 'rake/testtask'
2
+
3
+ Rake::TestTask.new do |t|
4
+ t.libs << 'test'
5
+ end
6
+
7
+ desc "Run tests"
8
+ task :default => :test
@@ -0,0 +1,19 @@
1
+ require 'test/unit'
2
+ require 'hola_wenbo'
3
+
4
+ class HolaWenboTest < Test::Unit::TestCase
5
+ def test_english_hello
6
+ assert_equal "hello world",
7
+ HolaWenbo.hi("english")
8
+ end
9
+
10
+ def test_any_hello
11
+ assert_equal "hello world",
12
+ HolaWenbo.hi("ruby")
13
+ end
14
+
15
+ def test_spanish_hello
16
+ assert_equal "hola mundo",
17
+ HolaWenbo.hi(:spanish)
18
+ end
19
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hola_wenbo
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:
@@ -18,8 +18,10 @@ executables:
18
18
  extensions: []
19
19
  extra_rdoc_files: []
20
20
  files:
21
+ - Rakefile
21
22
  - lib/hola_wenbo.rb
22
23
  - lib/hola_wenbo/translator.rb
24
+ - test/test_hola_wenbo.rb
23
25
  - bin/hola_wenbo
24
26
  homepage: http://rubygems.org/gems/hola_wenbo
25
27
  licenses: []
@@ -45,4 +47,5 @@ rubygems_version: 1.8.24
45
47
  signing_key:
46
48
  specification_version: 3
47
49
  summary: Hola, wenbo!
48
- test_files: []
50
+ test_files:
51
+ - test/test_hola_wenbo.rb