rspec-wait 0.0.2 → 0.0.3

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: fa62ab1f0470b41980bbda0f946388a78f785fd5
4
- data.tar.gz: ee13ca8d70502950209cea78026b457f946671ca
3
+ metadata.gz: 19bcbef8a8f87e6d9eb2d9f827bbb8482339bd62
4
+ data.tar.gz: 84dbbd7b44d2df67ce8008ca2a081f9f2b9b3325
5
5
  SHA512:
6
- metadata.gz: 879ebe4b4dda20745cb76f6d243f29056e21ffbe12e34d6cbe01ff292d7285258034c7df0792ba6e6f9cccd861b45a1d07ab980723c58cbf670192b67002dd34
7
- data.tar.gz: ca29a21677137114dff82a800942082577c6be3efa2029862917e4d7bc7366431733e6ac8752ba23bcfab069e2b525429d7ca3a77aeba01a28e9420b97a8fd2e
6
+ metadata.gz: 390f1c7d712b747322ee45c71ca0fad89e34a9dd2eeb19472b4e378aa63773b5705d7a487549ec6a00a2d2880aa64d009b4445d787ca14afa5da99f2e3c07a4e
7
+ data.tar.gz: 06f7b337e642e87f7be0bdc525e72bd730333efa5ddc7f9991efdc3b928dc56814d1240b1a22b7ab02e79e1df21118abb7e2de1920d148775abed301332293d2
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --color
2
+ --format=documentation
3
+ --order=random
data/.travis.yml CHANGED
@@ -15,6 +15,7 @@ gemfile:
15
15
  - gemfiles/rspec_2_13.gemfile
16
16
  - gemfiles/rspec_2_14.gemfile
17
17
  - gemfiles/rspec_3_0.gemfile
18
+ - gemfiles/rspec_3_1.gemfile
18
19
  language: ruby
19
20
  matrix:
20
21
  allow_failures:
data/README.md CHANGED
@@ -27,9 +27,10 @@ RSpec::Wait will keep trying until your assertion passes or times out.
27
27
  ### Example
28
28
 
29
29
  RSpec::Wait's `wait_for` assertions are nearly drop-in replacements for RSpec's
30
- `expect` assertions. The major difference is that the `wait_for` method always
31
- accepts a block because it may evaluate the content of that block multiple times
32
- while waiting.
30
+ `expect` assertions. The major difference is that the `wait_for` method only
31
+ works with non-block matchers. However, `wait_for` will still accept a block
32
+ because it may need to evaluate the content of that block multiple times while
33
+ waiting.
33
34
 
34
35
  ```ruby
35
36
  describe Ticker do
@@ -41,13 +42,13 @@ describe Ticker do
41
42
  end
42
43
 
43
44
  it "starts a blank tape" do
44
- expect { ticker.tape }.to eq("")
45
+ expect(ticker.tape).to eq("")
45
46
  end
46
47
 
47
48
  it "writes the message one letter at a time" do
48
- wait_for { ticker.tape }.to eq("··-·")
49
- wait_for { ticker.tape }.to eq("··-· ---")
50
- wait_for { ticker.tape }.to eq("··-· --- ---")
49
+ wait_for(ticker.tape).to eq("··-·")
50
+ wait_for(ticker.tape).to eq("··-· ---")
51
+ wait_for(ticker.tape).to eq("··-· --- ---")
51
52
  end
52
53
  end
53
54
  end
@@ -76,7 +77,7 @@ end
76
77
  ### Matchers
77
78
 
78
79
  RSpec::Wait ties into RSpec's internals so it can take full advantage of any
79
- matcher that you would use with RSpec's own `expect` method.
80
+ non-block matcher that you would use with RSpec's own `expect` method.
80
81
 
81
82
  ## Who wrote RSpec::Wait?
82
83
 
@@ -0,0 +1,9 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec path: ".."
4
+
5
+ gem "rspec", "~> 3.1.0"
6
+
7
+ group :test do
8
+ gem "codeclimate-test-reporter", require: false
9
+ end
data/rspec-wait.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "rspec-wait"
5
- spec.version = "0.0.2"
5
+ spec.version = "0.0.3"
6
6
 
7
7
  spec.author = "Steve Richert"
8
8
  spec.email = "steve.richert@gmail.com"
@@ -14,8 +14,8 @@ Gem::Specification.new do |spec|
14
14
  spec.files = `git ls-files -z`.split("\x0")
15
15
  spec.test_files = spec.files.grep(/^spec/)
16
16
 
17
- spec.add_dependency "rspec", ">= 2.11", "< 3.1"
17
+ spec.add_dependency "rspec", ">= 2.11", "< 3.2"
18
18
 
19
- spec.add_development_dependency "bundler", "~> 1.6"
19
+ spec.add_development_dependency "bundler", "~> 1.7"
20
20
  spec.add_development_dependency "rake", "~> 10.3"
21
21
  end
data/spec/spec_helper.rb CHANGED
@@ -4,5 +4,3 @@ if ENV["CODECLIMATE_REPO_TOKEN"]
4
4
  end
5
5
 
6
6
  require "rspec/wait"
7
-
8
- Dir[File.expand_path("../support/*.rb", __FILE__)].each { |f| require f }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-wait
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Richert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-11 00:00:00.000000000 Z
11
+ date: 2014-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '2.11'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '3.1'
22
+ version: '3.2'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,21 +29,21 @@ dependencies:
29
29
  version: '2.11'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '3.1'
32
+ version: '3.2'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: bundler
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '1.6'
39
+ version: '1.7'
40
40
  type: :development
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '1.6'
46
+ version: '1.7'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rake
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -65,6 +65,7 @@ extensions: []
65
65
  extra_rdoc_files: []
66
66
  files:
67
67
  - ".gitignore"
68
+ - ".rspec"
68
69
  - ".travis.yml"
69
70
  - CHANGELOG.md
70
71
  - CONTRIBUTING.md
@@ -77,13 +78,13 @@ files:
77
78
  - gemfiles/rspec_2_13.gemfile
78
79
  - gemfiles/rspec_2_14.gemfile
79
80
  - gemfiles/rspec_3_0.gemfile
81
+ - gemfiles/rspec_3_1.gemfile
80
82
  - lib/rspec/wait.rb
81
83
  - lib/rspec/wait/error.rb
82
84
  - lib/rspec/wait/handler.rb
83
85
  - lib/rspec/wait/target.rb
84
86
  - rspec-wait.gemspec
85
87
  - spec/spec_helper.rb
86
- - spec/support/random.rb
87
88
  - spec/wait_for_spec.rb
88
89
  homepage: https://github.com/laserlemon/rspec-wait
89
90
  licenses:
@@ -105,11 +106,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
106
  version: '0'
106
107
  requirements: []
107
108
  rubyforge_project:
108
- rubygems_version: 2.2.2
109
+ rubygems_version: 2.4.2
109
110
  signing_key:
110
111
  specification_version: 4
111
112
  summary: Wait for conditions in RSpec
112
113
  test_files:
113
114
  - spec/spec_helper.rb
114
- - spec/support/random.rb
115
115
  - spec/wait_for_spec.rb
@@ -1,3 +0,0 @@
1
- RSpec.configure do |config|
2
- config.order = "random"
3
- end