testoaster 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d719e279e17fc987ac0c06ef4bc0485783e85c2f
4
- data.tar.gz: b1c6b906216a3601a948466698dd4792ddce8ef8
3
+ metadata.gz: 747f2d87022c2ada82b62dd4dfea72726e766615
4
+ data.tar.gz: 0c7c14ff9c45532751092285005e48db0444573b
5
5
  SHA512:
6
- metadata.gz: 4fda08290ed1713ad98c9b80423c849a3588a4d2a6fb30c9fc928f3b7c5c430d0dfef7e48debe0f1cbeea3aee19912c77501e6bbc7489fb80ebae92e7fab5537
7
- data.tar.gz: 18c496f6b69a6ce3c57fe47af6ea7a67658d0377b9ed84fecc5fa95c3b8e81ef25752863a82c123dc03cf81cf09527a37ffccf0ec189da2a34dd27abd75ea957
6
+ metadata.gz: 475d12faae073ec977a1e8f4ae78373aac0915db28628ac49483e286d46ae5b1e73a8ad7ddf0df7d0ad743269c87c8ab756b15419e8b3c49ef8427080481ed25
7
+ data.tar.gz: 00d36f7f6040fcce03bd2a16cabad4e586317b59d65aa074bbed7e05a5344dd564266e365d8f9528effb1e6198932aa549f81b736f4d548fb28a3a3fcfbf0d06
data/Gemfile CHANGED
@@ -1,16 +1,16 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem 'json','~> 1.8.2'
3
+ gem 'json'
4
4
 
5
5
  group :development do
6
-
7
- gem "rdoc", "~> 3.12"
8
- # gem "bundler", "~> 1.2.0.pre.1"
9
- gem "jeweler", "~> 1.8.4"
10
-
6
+ gem "rdoc"
7
+ gem "jeweler", "~> 2.3"
8
+ gem "rspec-core"
11
9
  end
12
10
 
13
11
  group :test do
14
12
  gem "shoulda", ">= 0"
15
13
  gem "simplecov", ">= 0"
14
+ gem 'test-unit'
15
+ gem 'minitest'
16
16
  end
data/Gemfile.lock CHANGED
@@ -1,36 +1,97 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- git (1.2.5)
5
- jeweler (1.8.4)
6
- bundler (~> 1.0)
4
+ activesupport (5.1.1)
5
+ concurrent-ruby (~> 1.0, >= 1.0.2)
6
+ i18n (~> 0.7)
7
+ minitest (~> 5.1)
8
+ tzinfo (~> 1.1)
9
+ addressable (2.5.1)
10
+ public_suffix (~> 2.0, >= 2.0.2)
11
+ builder (3.2.3)
12
+ concurrent-ruby (1.0.5)
13
+ descendants_tracker (0.0.4)
14
+ thread_safe (~> 0.3, >= 0.3.1)
15
+ docile (1.1.5)
16
+ faraday (0.9.2)
17
+ multipart-post (>= 1.2, < 3)
18
+ git (1.3.0)
19
+ github_api (0.11.3)
20
+ addressable (~> 2.3)
21
+ descendants_tracker (~> 0.0.1)
22
+ faraday (~> 0.8, < 0.10)
23
+ hashie (>= 1.2)
24
+ multi_json (>= 1.7.5, < 2.0)
25
+ nokogiri (~> 1.6.0)
26
+ oauth2
27
+ hashie (3.5.5)
28
+ highline (1.7.8)
29
+ i18n (0.8.1)
30
+ jeweler (2.3.5)
31
+ builder
32
+ bundler (>= 1.0)
7
33
  git (>= 1.2.5)
34
+ github_api (~> 0.11.0)
35
+ highline (>= 1.6.15)
36
+ nokogiri (>= 1.5.10)
37
+ psych (~> 2.2)
8
38
  rake
9
39
  rdoc
10
- json (1.8.6)
11
- multi_json (1.3.6)
12
- rake (0.9.2.2)
13
- rdoc (3.12)
14
- json (~> 1.4)
15
- shoulda (3.0.1)
16
- shoulda-context (~> 1.0.0)
17
- shoulda-matchers (~> 1.0.0)
18
- shoulda-context (1.0.0)
19
- shoulda-matchers (1.0.0)
20
- simplecov (0.6.4)
21
- multi_json (~> 1.0)
22
- simplecov-html (~> 0.5.3)
23
- simplecov-html (0.5.3)
40
+ semver2
41
+ json (2.1.0)
42
+ jwt (1.5.6)
43
+ mini_portile2 (2.1.0)
44
+ minitest (5.10.2)
45
+ multi_json (1.12.1)
46
+ multi_xml (0.6.0)
47
+ multipart-post (2.0.0)
48
+ nokogiri (1.6.8.1)
49
+ mini_portile2 (~> 2.1.0)
50
+ oauth2 (1.3.1)
51
+ faraday (>= 0.8, < 0.12)
52
+ jwt (~> 1.0)
53
+ multi_json (~> 1.3)
54
+ multi_xml (~> 0.5)
55
+ rack (>= 1.2, < 3)
56
+ power_assert (1.0.2)
57
+ psych (2.2.4)
58
+ public_suffix (2.0.5)
59
+ rack (2.0.3)
60
+ rake (12.0.0)
61
+ rdoc (5.1.0)
62
+ rspec-core (3.6.0)
63
+ rspec-support (~> 3.6.0)
64
+ rspec-support (3.6.0)
65
+ semver2 (3.4.2)
66
+ shoulda (3.5.0)
67
+ shoulda-context (~> 1.0, >= 1.0.1)
68
+ shoulda-matchers (>= 1.4.1, < 3.0)
69
+ shoulda-context (1.2.2)
70
+ shoulda-matchers (2.8.0)
71
+ activesupport (>= 3.0.0)
72
+ simplecov (0.14.1)
73
+ docile (~> 1.1.0)
74
+ json (>= 1.8, < 3)
75
+ simplecov-html (~> 0.10.0)
76
+ simplecov-html (0.10.1)
77
+ test-unit (3.2.4)
78
+ power_assert
79
+ thread_safe (0.3.6)
80
+ tzinfo (1.2.3)
81
+ thread_safe (~> 0.1)
24
82
 
25
83
  PLATFORMS
26
84
  ruby
27
85
 
28
86
  DEPENDENCIES
29
- jeweler (~> 1.8.4)
30
- json (~> 1.8.2)
31
- rdoc (~> 3.12)
87
+ jeweler (~> 2.3)
88
+ json
89
+ minitest
90
+ rdoc
91
+ rspec-core
32
92
  shoulda
33
93
  simplecov
94
+ test-unit
34
95
 
35
96
  BUNDLED WITH
36
97
  1.14.6
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.5
data/lib/testoaster.rb CHANGED
@@ -1,4 +1,6 @@
1
1
 
2
+ require 'yaml'
3
+
2
4
  def puts! arg, label=""
3
5
  puts "+++ +++ #{label}"
4
6
  puts arg.inspect
@@ -0,0 +1,16 @@
1
+
2
+ require 'helper'
3
+ require 'testoaster'
4
+
5
+ class TestPaperclip < Test::Unit::TestCase
6
+
7
+ should 'test paperclip' do
8
+
9
+ result = Paperclip.options[:log]
10
+ assert_equal false, result
11
+
12
+ end
13
+
14
+ end
15
+
16
+
@@ -1,10 +1,7 @@
1
-
2
1
  require 'helper'
3
2
  require 'testoaster'
4
-
5
3
  require 'stringio'
6
4
  module Kernel
7
-
8
5
  def capture_stdout
9
6
  out = StringIO.new
10
7
  $stdout = out
@@ -13,14 +10,11 @@ module Kernel
13
10
  ensure
14
11
  $stdout = STDOUT
15
12
  end
16
-
17
13
  end
18
14
 
19
- class Response
20
-
15
+ class Response
21
16
  attr_accessor :layout
22
17
  attr_accessor :body
23
-
24
18
  end
25
19
 
26
20
  class TestTestoaster < Test::Unit::TestCase
@@ -29,50 +23,25 @@ class TestTestoaster < Test::Unit::TestCase
29
23
  result = capture_stdout do
30
24
  puts! 'blah blah'
31
25
  end
32
- expected = "+++ +++\n\"blah blah\"\n"
33
- assert_equal expected, result
34
-
35
- end
36
-
37
- should 'test puts_each!' do
38
- arr = [ 1, 2, 3]
39
- result = capture_stdout do
40
- puts_each! arr
41
- end
42
- expected = "+++ +++\n1\n2\n3\n"
43
- assert_equal expected, result
26
+ expected = "+++ +++ \n\"blah blah\"\n"
27
+ assert_equal expected, result
44
28
  end
45
-
29
+
46
30
  should 'assert test_layout' do
47
31
  @response = Response.new
48
32
  @response.layout = 'layyy'
49
-
50
33
  assert_layout 'layyy'
51
-
52
34
  end
53
35
 
54
36
  should 'test t()' do
55
37
  result = t('users.test', 'test/en.yml')
56
38
  assert_equal 'Test', result
57
39
  end
58
-
59
- should 'test sign_in_path()' do
60
- assert_equal '/users/sign_in', sign_in_path
61
- end
62
-
40
+
63
41
  should 'test assert contains' do
64
42
  @r = Response.new
65
- @r.body = 'ttt'
66
-
43
+ @r.body = 'ttt'
67
44
  # assert_contains 'ttt'
68
45
  end
69
-
70
- should 'test todo' do
71
- begin
72
- todo
73
- rescue Exception => e
74
- assert_equal '@TODO: ', e.to_s
75
- end
76
- end
77
-
46
+
78
47
  end
data/testoaster.gemspec CHANGED
@@ -2,14 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
+ # stub: testoaster 0.0.5 ruby lib
5
6
 
6
7
  Gem::Specification.new do |s|
7
8
  s.name = "testoaster"
8
- s.version = "0.0.4"
9
+ s.version = "0.0.5"
9
10
 
10
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib"]
11
13
  s.authors = ["Victor Piousbox"]
12
- s.date = "2017-04-20"
14
+ s.date = "2017-05-30"
13
15
  s.description = "Some Rails testing goodies."
14
16
  s.email = "piousbox@gmail.com"
15
17
  s.extra_rdoc_files = [
@@ -25,35 +27,37 @@ Gem::Specification.new do |s|
25
27
  "Rakefile",
26
28
  "VERSION",
27
29
  "lib/testoaster.rb",
28
- "lib/utils.rb",
29
30
  "test/en.yml",
30
31
  "test/helper.rb",
32
+ "test/test_paperclip.rb",
31
33
  "test/test_testoaster.rb",
32
34
  "test/test_utils.rb",
33
35
  "testoaster.gemspec"
34
36
  ]
35
37
  s.homepage = "http://github.com/piousbox/testoaster"
36
38
  s.licenses = ["GLP v2"]
37
- s.require_paths = ["lib"]
38
- s.rubygems_version = "1.8.10"
39
+ s.rubygems_version = "2.5.1"
39
40
  s.summary = "Some Rails testing goodies."
40
41
 
41
42
  if s.respond_to? :specification_version then
42
- s.specification_version = 3
43
+ s.specification_version = 4
43
44
 
44
45
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
45
- s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
46
- s.add_development_dependency(%q<bundler>, ["~> 1.2.0.pre.1"])
47
- s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
46
+ s.add_runtime_dependency(%q<json>, [">= 0"])
47
+ s.add_development_dependency(%q<rdoc>, [">= 0"])
48
+ s.add_development_dependency(%q<jeweler>, ["~> 2.3"])
49
+ s.add_development_dependency(%q<rspec-core>, [">= 0"])
48
50
  else
49
- s.add_dependency(%q<rdoc>, ["~> 3.12"])
50
- s.add_dependency(%q<bundler>, ["~> 1.2.0.pre.1"])
51
- s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
51
+ s.add_dependency(%q<json>, [">= 0"])
52
+ s.add_dependency(%q<rdoc>, [">= 0"])
53
+ s.add_dependency(%q<jeweler>, ["~> 2.3"])
54
+ s.add_dependency(%q<rspec-core>, [">= 0"])
52
55
  end
53
56
  else
54
- s.add_dependency(%q<rdoc>, ["~> 3.12"])
55
- s.add_dependency(%q<bundler>, ["~> 1.2.0.pre.1"])
56
- s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
57
+ s.add_dependency(%q<json>, [">= 0"])
58
+ s.add_dependency(%q<rdoc>, [">= 0"])
59
+ s.add_dependency(%q<jeweler>, ["~> 2.3"])
60
+ s.add_dependency(%q<rspec-core>, [">= 0"])
57
61
  end
58
62
  end
59
63
 
metadata CHANGED
@@ -1,57 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testoaster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-20 00:00:00.000000000 Z
11
+ date: 2017-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: json
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: rdoc
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
- - - "~>"
31
+ - - ">="
18
32
  - !ruby/object:Gem::Version
19
- version: '3.12'
33
+ version: '0'
20
34
  type: :development
21
35
  prerelease: false
22
36
  version_requirements: !ruby/object:Gem::Requirement
23
37
  requirements:
24
- - - "~>"
38
+ - - ">="
25
39
  - !ruby/object:Gem::Version
26
- version: '3.12'
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
- name: bundler
42
+ name: jeweler
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
45
  - - "~>"
32
46
  - !ruby/object:Gem::Version
33
- version: 1.2.0.pre.1
47
+ version: '2.3'
34
48
  type: :development
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
52
  - - "~>"
39
53
  - !ruby/object:Gem::Version
40
- version: 1.2.0.pre.1
54
+ version: '2.3'
41
55
  - !ruby/object:Gem::Dependency
42
- name: jeweler
56
+ name: rspec-core
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
- - - "~>"
59
+ - - ">="
46
60
  - !ruby/object:Gem::Version
47
- version: 1.8.4
61
+ version: '0'
48
62
  type: :development
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
- - - "~>"
66
+ - - ">="
53
67
  - !ruby/object:Gem::Version
54
- version: 1.8.4
68
+ version: '0'
55
69
  description: Some Rails testing goodies.
56
70
  email: piousbox@gmail.com
57
71
  executables: []
@@ -68,9 +82,9 @@ files:
68
82
  - Rakefile
69
83
  - VERSION
70
84
  - lib/testoaster.rb
71
- - lib/utils.rb
72
85
  - test/en.yml
73
86
  - test/helper.rb
87
+ - test/test_paperclip.rb
74
88
  - test/test_testoaster.rb
75
89
  - test/test_utils.rb
76
90
  - testoaster.gemspec
@@ -96,6 +110,6 @@ requirements: []
96
110
  rubyforge_project:
97
111
  rubygems_version: 2.5.1
98
112
  signing_key:
99
- specification_version: 3
113
+ specification_version: 4
100
114
  summary: Some Rails testing goodies.
101
115
  test_files: []
data/lib/utils.rb DELETED
@@ -1,38 +0,0 @@
1
-
2
- module ::Utils
3
- def self.included base
4
- base.send :include, InstanceMethods
5
- base.extend ClassMethods
6
- end
7
-
8
- module InstanceMethods
9
-
10
- def puts! args, label=""
11
- puts "+++ +++ #{label}"
12
- puts args.inspect
13
- end
14
-
15
- def format_date(date)
16
- date = date.to_date
17
- # date.to_s.split(" UTC")[0]
18
- date.in_time_zone "Pacific Time (US & Canada)"
19
- end
20
-
21
- def format_time time
22
- time.in_time_zone "Pacific Time (US & Canada)"
23
- end
24
-
25
- end
26
-
27
- module ClassMethods
28
- def clear
29
- if Rails.env.test?
30
- self.unscoped.each do |m|
31
- m.destroy
32
- end
33
- end
34
- end
35
- end
36
-
37
- end
38
-