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 +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -0
- data/features/developer/step_definitions/general_steps.rb +1 -1
- data/lib/rspec/shell/expectations/version.rb +1 -1
- data/spec/assert_stdin_spec.rb +2 -2
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d23f0c4fbf35c8359940dc9c6f4f1e5a35648e00
|
4
|
+
data.tar.gz: 1494b311ed44a4442d1f0f7bb520f6ea60b6131b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c70b05636a175b075ab78d01a13d98e8520adf010ed7779dbaa8de87aa26bd158e05cdf02307fab8b7018422375fe1956b660be48c896e722dc36a5e2035ec0
|
7
|
+
data.tar.gz: 7b9a2bbbfdfdb29662762b7ba0ae66ce46a86bbe40a62a6008324c8ead69e21f1192415706d5609e882d79f6ec83831f54a70342ea20d1671a26305826579115
|
data/CHANGELOG.md
ADDED
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
|
79
|
+
expect(command.stdin).to match contents
|
80
80
|
end
|
81
81
|
|
82
82
|
Then(/^the file "(.*?)" contains "(.*?)"$/) do |filename, contents|
|
data/spec/assert_stdin_spec.rb
CHANGED
@@ -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
|
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
|
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
|
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:
|
103
|
+
version: '0'
|
103
104
|
requirements: []
|
104
105
|
rubyforge_project:
|
105
106
|
rubygems_version: 2.2.2
|