mysample 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/spec/mysample_spec.rb +15 -0
- data/spec/spec_helper.rb +6 -0
- data/test/test_mysample.rb +16 -0
- metadata +23 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 023da2a26be0d32e664881f9d25b5153e2ad7973
|
4
|
+
data.tar.gz: c140dcba8a1ce23576e092154c384a59feaafd54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae3c134034116c9208e2180d1fc2f25cba55b0b686f3c3133935006f7320c194cfa7800c5a8b82d4ef523ee1a3325f8018b0962326f7bd704841bab97c7a112d
|
7
|
+
data.tar.gz: d9f4a3b971e114fb99c5b7b0086d2e2f1a08bceae5edddeacd28a8785e553d75f24523102a78a40d4a2ea02c948101b4a5e900b8c0d756fd46c60861fb1bd985
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe MySample do
|
4
|
+
it "should say hello world in english" do
|
5
|
+
expect(MySample.hi("english")).to eq "hello world"
|
6
|
+
end
|
7
|
+
|
8
|
+
it "should say hello world in any language" do
|
9
|
+
expect(MySample.hi("ruby")).to eq "hello world"
|
10
|
+
end
|
11
|
+
|
12
|
+
it "should say hello world in spanish" do
|
13
|
+
expect(MySample.hi("spanish")).to eq "hola mundo"
|
14
|
+
end
|
15
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'test/unit'
|
2
|
+
require 'mysample'
|
3
|
+
|
4
|
+
class MySampleTest < Test::Unit::TestCase
|
5
|
+
def test_english_hello
|
6
|
+
assert_equal "hello world", MySample.hi("english")
|
7
|
+
end
|
8
|
+
|
9
|
+
def test_any_hello
|
10
|
+
assert_equal "hello world", MySample.hi("ruby")
|
11
|
+
end
|
12
|
+
|
13
|
+
def test_spanish_hello
|
14
|
+
assert_equal "hola mundo", MySample.hi("spanish")
|
15
|
+
end
|
16
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mysample
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Wong
|
@@ -9,7 +9,21 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2010-04-28 00:00:00.000000000 Z
|
12
|
-
dependencies:
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rspec
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.5'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.5'
|
13
27
|
description: A simple hello world gem
|
14
28
|
email: awong.cm@hotmail.com
|
15
29
|
executables:
|
@@ -20,6 +34,9 @@ files:
|
|
20
34
|
- bin/mysample
|
21
35
|
- lib/mysample.rb
|
22
36
|
- lib/mysample/translator.rb
|
37
|
+
- spec/mysample_spec.rb
|
38
|
+
- spec/spec_helper.rb
|
39
|
+
- test/test_mysample.rb
|
23
40
|
homepage: http://rubygems.org/gems/mysample
|
24
41
|
licenses:
|
25
42
|
- MIT
|
@@ -44,4 +61,7 @@ rubygems_version: 2.4.1
|
|
44
61
|
signing_key:
|
45
62
|
specification_version: 4
|
46
63
|
summary: My Sample
|
47
|
-
test_files:
|
64
|
+
test_files:
|
65
|
+
- spec/mysample_spec.rb
|
66
|
+
- spec/spec_helper.rb
|
67
|
+
- test/test_mysample.rb
|