minitest-slow_test 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b31703cc2c551f3c3dedb596bd6b0820d095c83
4
- data.tar.gz: 047ae032fd6d9e08ffabb72c204f67e911377464
3
+ metadata.gz: c237cbe6ac0d74f3ae7662ed04f5ce40baf182d9
4
+ data.tar.gz: 9e3e4f94b1cb72b3a67aae89958e0f83d81af13c
5
5
  SHA512:
6
- metadata.gz: f72fdcd49b2ac769dbc633c6841991495550abf6cabc215a4974e73d9370cfe077318c226dfb9b3cab0339d4d6a9bea811268f64d8616549cde6648ea53393eb
7
- data.tar.gz: e389d5e2fac59ae9b89115101ba3e3fb9990b79d31c4d10472529fd3f671e3a76622d9a72f2debf4cbe292474a5fdc3e32ac550d5f4a379c3a346a4a02e096a8
6
+ metadata.gz: 041f14d896589969a210731e84b5d4673b62ffece5b03cf2de52beca995ba6afe199863e97dacc8eb75a3f2fadd19af89f6eec8a39236115287fe50c647a0fdc
7
+ data.tar.gz: 2a7b048a8e9908d81df39bf72bd67f9a3ca400f482595344dc8afde83c8bc6b6391a8e2093f435b98009c1c575e7cf0c8eb90f691a3e7a6c08b26d7febcc4716
data/.travis.yml CHANGED
@@ -1,3 +1,5 @@
1
1
  language: ruby
2
+ sudo: false
2
3
  rvm:
3
- - 2.1.1
4
+ - 2.1.5
5
+ - 2.2.0
data/README.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  Display the summary of a slow test when tests finished.
4
4
 
5
+ [![Build Status](https://travis-ci.org/y-yagi/minitest-slow_test.svg?branch=master)](https://travis-ci.org/y-yagi/minitest-slow_test)
6
+ [![Gem Version](https://badge.fury.io/rb/minitest-slow_test.svg)](http://badge.fury.io/rb/minitest-slow_test)
7
+
8
+
5
9
  ## Output example
6
10
 
7
11
  ```shell
@@ -1,5 +1,5 @@
1
1
  module Minitest
2
2
  module SlowTest
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -3,10 +3,13 @@ require 'minitest/slow_test/version'
3
3
  module Minitest
4
4
  module SlowTest
5
5
  class << self
6
- attr_accessor :long_test_time
6
+ attr_writer :long_test_time
7
7
 
8
8
  def long_test_time
9
- (@long_test_time || 1.0).to_f
9
+ unless defined? @long_test_time
10
+ @long_test_time = 1.0
11
+ end
12
+ @long_test_time.to_f
10
13
  end
11
14
  end
12
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-slow_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuji Yaginuma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-26 00:00:00.000000000 Z
11
+ date: 2015-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  version: '0'
106
106
  requirements: []
107
107
  rubyforge_project:
108
- rubygems_version: 2.2.2
108
+ rubygems_version: 2.4.5
109
109
  signing_key:
110
110
  specification_version: 4
111
111
  summary: Display the summary of a slow test when tests finished.