rspec-shell-expectations 1.0.0.pre.rc.1 → 1.0.0

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: c28fe2261b1a85f0072e99abb3d62fda4fec7d88
4
- data.tar.gz: e907b0c7992c2511ea7d900082d9cf63e23e0f03
3
+ metadata.gz: d23f0c4fbf35c8359940dc9c6f4f1e5a35648e00
4
+ data.tar.gz: 1494b311ed44a4442d1f0f7bb520f6ea60b6131b
5
5
  SHA512:
6
- metadata.gz: 3d9ac3e99248adaf840d94d3355a9dc5895a2cb31d23ed0053c5a399a2a9e16f68e5af1fb741569ef4ed4abccc37158394ba5e4325a9d80c84ad2be809749fc6
7
- data.tar.gz: 262baf38be926573fd75b6ae329462537be09d27e247191722ff8d6967f36a91d4479d28b14cb59d5db9b42f1ae3ef0da13ccdca83889c8ad19051027a6d4405
6
+ metadata.gz: 5c70b05636a175b075ab78d01a13d98e8520adf010ed7779dbaa8de87aa26bd158e05cdf02307fab8b7018422375fe1956b660be48c896e722dc36a5e2035ec0
7
+ data.tar.gz: 7b9a2bbbfdfdb29662762b7ba0ae66ce46a86bbe40a62a6008324c8ead69e21f1192415706d5609e882d79f6ec83831f54a70342ea20d1671a26305826579115
data/CHANGELOG.md ADDED
@@ -0,0 +1,8 @@
1
+ # 1.0.0
2
+
3
+ * Initial release
4
+ * Support for
5
+ * `create_stubbed_env`
6
+ * Execute script with env-vars
7
+ * Stubbing commands, output and exitstatus
8
+ * Asserting calls, arguments and stdin
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Rspec::Shell::Expectations
2
2
  [![Build Status](https://travis-ci.org/matthijsgroen/rspec-shell-expectations.png?branch=master)](https://travis-ci.org/matthijsgroen/rspec-shell-expectations)
3
3
  [![Gem Version](https://badge.fury.io/rb/rspec-shell-expectations.svg)](http://badge.fury.io/rb/rspec-shell-expectations)
4
+ [![Code Climate](https://codeclimate.com/github/matthijsgroen/rspec-shell-expectations/badges/gpa.svg)](https://codeclimate.com/github/matthijsgroen/rspec-shell-expectations)
4
5
 
5
6
  Run your shell script in a mocked environment to test its behaviour
6
7
  using RSpec.
@@ -76,7 +76,7 @@ Then(/#{c} is not called$/) do |command|
76
76
  end
77
77
 
78
78
  Then(/#{c} has received "(.*?)" from standard\-in$/) do |command, contents|
79
- expect(command.stdin).to eql contents
79
+ expect(command.stdin).to match contents
80
80
  end
81
81
 
82
82
  Then(/^the file "(.*?)" contains "(.*?)"$/) do |filename, contents|
@@ -2,7 +2,7 @@ module Rspec
2
2
  module Shell
3
3
  #:nodoc:
4
4
  module Expectations
5
- VERSION = '1.0.0-rc.1'
5
+ VERSION = '1.0.0'
6
6
  end
7
7
  end
8
8
  end
@@ -30,13 +30,13 @@ describe 'Assert stdin' do
30
30
  describe '#stdin' do
31
31
  it 'returns the stdin' do
32
32
  subject
33
- expect(command1_stub.stdin).to eql 'foo bar'
33
+ expect(command1_stub.stdin).to match 'foo bar'
34
34
  end
35
35
 
36
36
  context 'with arguments' do
37
37
  it 'returns the stdin' do
38
38
  subject
39
- expect(command1_stub.with_args('hello').stdin).to eql 'baz'
39
+ expect(command1_stub.with_args('hello').stdin).to match 'baz'
40
40
  end
41
41
  end
42
42
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-shell-expectations
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.rc.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthijs Groen
@@ -52,6 +52,7 @@ files:
52
52
  - ".rspec"
53
53
  - ".ruby-version"
54
54
  - ".travis.yml"
55
+ - CHANGELOG.md
55
56
  - Gemfile
56
57
  - LICENSE.txt
57
58
  - README.md
@@ -97,9 +98,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
97
98
  version: '0'
98
99
  required_rubygems_version: !ruby/object:Gem::Requirement
99
100
  requirements:
100
- - - ">"
101
+ - - ">="
101
102
  - !ruby/object:Gem::Version
102
- version: 1.3.1
103
+ version: '0'
103
104
  requirements: []
104
105
  rubyforge_project:
105
106
  rubygems_version: 2.2.2