rspec-bash 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/.rspec +1 -0
  4. data/.ruby-version +1 -0
  5. data/.travis.yml +6 -0
  6. data/CHANGELOG.md +24 -0
  7. data/Gemfile +7 -0
  8. data/LICENSE.txt +23 -0
  9. data/README.md +227 -0
  10. data/Rakefile +13 -0
  11. data/bin/function_override.sh.erb +7 -0
  12. data/bin/function_override_wrapper.sh.erb +16 -0
  13. data/bin/stub +62 -0
  14. data/lib/rspec/bash.rb +5 -0
  15. data/lib/rspec/bash/call_configuration.rb +37 -0
  16. data/lib/rspec/bash/call_log.rb +77 -0
  17. data/lib/rspec/bash/matchers.rb +2 -0
  18. data/lib/rspec/bash/matchers/called_with_arguments.rb +14 -0
  19. data/lib/rspec/bash/matchers/called_with_no_arguments.rb +5 -0
  20. data/lib/rspec/bash/stubbed_command.rb +76 -0
  21. data/lib/rspec/bash/stubbed_env.rb +99 -0
  22. data/rspec-bash.gemspec +25 -0
  23. data/spec/classes/call_configuration_spec.rb +21 -0
  24. data/spec/classes/call_log_spec.rb +309 -0
  25. data/spec/classes/stubbed_command_spec.rb +134 -0
  26. data/spec/classes/stubbed_env_spec.rb +306 -0
  27. data/spec/integration/assert_called_spec.rb +48 -0
  28. data/spec/integration/assert_stdin_spec.rb +39 -0
  29. data/spec/integration/chain_args_spec.rb +65 -0
  30. data/spec/integration/change_exitstatus_spec.rb +53 -0
  31. data/spec/integration/provide_env_vars_spec.rb +31 -0
  32. data/spec/integration/replace_shell_commands_spec.rb +48 -0
  33. data/spec/integration/stub_output_spec.rb +110 -0
  34. data/spec/matchers/be_called_with_arguments_spec.rb +55 -0
  35. data/spec/matchers/be_called_with_no_arguments_spec.rb +32 -0
  36. data/spec/scripts/function_library.sh +9 -0
  37. metadata +129 -0
metadata ADDED
@@ -0,0 +1,129 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rspec-bash
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.3
5
+ platform: ruby
6
+ authors:
7
+ - Ben Brewer
8
+ - Mike Urban
9
+ - Matthijs Groen
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2016-10-11 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: bundler
17
+ requirement: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '1.6'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ~>
27
+ - !ruby/object:Gem::Version
28
+ version: '1.6'
29
+ - !ruby/object:Gem::Dependency
30
+ name: rake
31
+ requirement: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ~>
34
+ - !ruby/object:Gem::Version
35
+ version: '10.0'
36
+ type: :development
37
+ prerelease: false
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ~>
41
+ - !ruby/object:Gem::Version
42
+ version: '10.0'
43
+ description: |2
44
+ Stub and mock Bash commands
45
+ Verify Bash calls and outputs
46
+ email:
47
+ - ben@benbrewer.me
48
+ - mike.david.urban@gmail.com
49
+ executables:
50
+ - function_override.sh.erb
51
+ - function_override_wrapper.sh.erb
52
+ - stub
53
+ extensions: []
54
+ extra_rdoc_files: []
55
+ files:
56
+ - .gitignore
57
+ - .rspec
58
+ - .ruby-version
59
+ - .travis.yml
60
+ - CHANGELOG.md
61
+ - Gemfile
62
+ - LICENSE.txt
63
+ - README.md
64
+ - Rakefile
65
+ - bin/function_override.sh.erb
66
+ - bin/function_override_wrapper.sh.erb
67
+ - bin/stub
68
+ - lib/rspec/bash.rb
69
+ - lib/rspec/bash/call_configuration.rb
70
+ - lib/rspec/bash/call_log.rb
71
+ - lib/rspec/bash/matchers.rb
72
+ - lib/rspec/bash/matchers/called_with_arguments.rb
73
+ - lib/rspec/bash/matchers/called_with_no_arguments.rb
74
+ - lib/rspec/bash/stubbed_command.rb
75
+ - lib/rspec/bash/stubbed_env.rb
76
+ - rspec-bash.gemspec
77
+ - spec/classes/call_configuration_spec.rb
78
+ - spec/classes/call_log_spec.rb
79
+ - spec/classes/stubbed_command_spec.rb
80
+ - spec/classes/stubbed_env_spec.rb
81
+ - spec/integration/assert_called_spec.rb
82
+ - spec/integration/assert_stdin_spec.rb
83
+ - spec/integration/chain_args_spec.rb
84
+ - spec/integration/change_exitstatus_spec.rb
85
+ - spec/integration/provide_env_vars_spec.rb
86
+ - spec/integration/replace_shell_commands_spec.rb
87
+ - spec/integration/stub_output_spec.rb
88
+ - spec/matchers/be_called_with_arguments_spec.rb
89
+ - spec/matchers/be_called_with_no_arguments_spec.rb
90
+ - spec/scripts/function_library.sh
91
+ homepage: https://github.com/mdurban/rspec-bash
92
+ licenses:
93
+ - MIT
94
+ metadata: {}
95
+ post_install_message:
96
+ rdoc_options: []
97
+ require_paths:
98
+ - lib
99
+ required_ruby_version: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ required_rubygems_version: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - '>='
107
+ - !ruby/object:Gem::Version
108
+ version: '0'
109
+ requirements: []
110
+ rubyforge_project:
111
+ rubygems_version: 2.0.14
112
+ signing_key:
113
+ specification_version: 4
114
+ summary: Test Bash with RSpec
115
+ test_files:
116
+ - spec/classes/call_configuration_spec.rb
117
+ - spec/classes/call_log_spec.rb
118
+ - spec/classes/stubbed_command_spec.rb
119
+ - spec/classes/stubbed_env_spec.rb
120
+ - spec/integration/assert_called_spec.rb
121
+ - spec/integration/assert_stdin_spec.rb
122
+ - spec/integration/chain_args_spec.rb
123
+ - spec/integration/change_exitstatus_spec.rb
124
+ - spec/integration/provide_env_vars_spec.rb
125
+ - spec/integration/replace_shell_commands_spec.rb
126
+ - spec/integration/stub_output_spec.rb
127
+ - spec/matchers/be_called_with_arguments_spec.rb
128
+ - spec/matchers/be_called_with_no_arguments_spec.rb
129
+ - spec/scripts/function_library.sh