sshp 0.0.1
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.
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +35 -0
- data/Rakefile +1 -0
- data/bin/sshp +16 -0
- data/bin/sshp-alias +17 -0
- data/lib/sshp.rb +3 -0
- data/lib/sshp/alias.rb +27 -0
- data/lib/sshp/version.rb +3 -0
- data/spec/spec_helper.rb +12 -0
- data/spec/sshp/alias_spec.rb +33 -0
- data/sshp.gemspec +24 -0
- data/vendor/ruby/1.9.1/bin/autospec +23 -0
- data/vendor/ruby/1.9.1/bin/coderay +23 -0
- data/vendor/ruby/1.9.1/bin/htmldiff +25 -0
- data/vendor/ruby/1.9.1/bin/ldiff +25 -0
- data/vendor/ruby/1.9.1/bin/pry +23 -0
- data/vendor/ruby/1.9.1/bin/rake +23 -0
- data/vendor/ruby/1.9.1/bin/rspec +23 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/README_INDEX.rdoc +123 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/Rakefile +35 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/bin/coderay +215 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay.rb +285 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/duo.rb +81 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoder.rb +201 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/_map.rb +17 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/comment_filter.rb +25 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/count.rb +39 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/debug.rb +61 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/div.rb +23 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/filter.rb +58 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/html.rb +327 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/html/css.rb +65 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/html/numbering.rb +103 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/html/output.rb +166 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/json.rb +83 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/lines_of_code.rb +45 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/null.rb +18 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/page.rb +24 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/span.rb +23 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/statistic.rb +96 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/terminal.rb +179 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/text.rb +46 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/token_kind_filter.rb +111 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/xml.rb +72 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/encoders/yaml.rb +50 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/for_redcloth.rb +95 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/helpers/file_type.rb +143 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/helpers/gzip.rb +41 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/helpers/plugin.rb +283 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/helpers/word_list.rb +72 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanner.rb +323 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/_map.rb +24 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/c.rb +189 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/clojure.rb +217 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/cpp.rb +215 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/css.rb +199 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/debug.rb +65 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/delphi.rb +144 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/diff.rb +199 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/erb.rb +81 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/groovy.rb +255 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/haml.rb +168 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/html.rb +253 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/java.rb +174 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/java/builtin_types.rb +421 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/java_script.rb +213 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/json.rb +95 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/php.rb +509 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/python.rb +287 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/raydebug.rb +66 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/ruby.rb +470 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/ruby/patterns.rb +175 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/ruby/string_state.rb +71 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/sql.rb +174 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/text.rb +26 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/xml.rb +17 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/yaml.rb +140 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/style.rb +23 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/styles/_map.rb +7 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/styles/alpha.rb +142 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/token_kinds.rb +90 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/tokens.rb +215 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/tokens_proxy.rb +55 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/version.rb +3 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/test/functional/basic.rb +320 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/test/functional/examples.rb +129 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/test/functional/for_redcloth.rb +84 -0
- data/vendor/ruby/1.9.1/gems/coderay-1.0.9/test/functional/suite.rb +15 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/.autotest +3 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/.gemtest +0 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/.hoerc +2 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/.travis.yml +22 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/Contributing.rdoc +64 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/Gemfile +20 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/History.rdoc +146 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/License.rdoc +39 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/Manifest.txt +38 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/README.rdoc +85 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/Rakefile +39 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/autotest/discover.rb +1 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/bin/htmldiff +32 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/bin/ldiff +6 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/docs/COPYING.txt +339 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/docs/artistic.txt +127 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff-lcs.rb +3 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs.rb +805 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs/array.rb +7 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs/block.rb +37 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs/callbacks.rb +322 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs/change.rb +177 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs/htmldiff.rb +149 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs/hunk.rb +276 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs/internals.rb +301 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs/ldiff.rb +195 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/lib/diff/lcs/string.rb +5 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/spec/change_spec.rb +65 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/spec/diff_spec.rb +47 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/spec/hunk_spec.rb +72 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/spec/issues_spec.rb +24 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/spec/lcs_spec.rb +54 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/spec/patch_spec.rb +414 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/spec/sdiff_spec.rb +202 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/spec/spec_helper.rb +290 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/spec/traverse_balanced_spec.rb +310 -0
- data/vendor/ruby/1.9.1/gems/diff-lcs-1.2.4/spec/traverse_sequences_spec.rb +139 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/.gitignore +2 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/AUTHORS +3 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/CHANGELOG +346 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/COPYING +340 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/INSTALL +55 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/LICENSE +7 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/README.rdoc +63 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/Rakefile +50 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/TODO +6 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/examples/ansi_colors.rb +38 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/examples/asking_for_arrays.rb +18 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/examples/basic_usage.rb +75 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/examples/color_scheme.rb +32 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/examples/get_character.rb +12 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/examples/limit.rb +12 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/examples/menus.rb +65 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/examples/overwrite.rb +19 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/examples/page_and_wrap.rb +322 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/examples/password.rb +7 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/examples/repeat_entry.rb +21 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/examples/trapping_eof.rb +22 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/examples/using_readline.rb +17 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/highline.gemspec +37 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/lib/highline.rb +1012 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/lib/highline/color_scheme.rb +134 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/lib/highline/compatibility.rb +16 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/lib/highline/import.rb +41 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/lib/highline/menu.rb +398 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/lib/highline/question.rb +475 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/lib/highline/simulate.rb +48 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/lib/highline/string_extensions.rb +131 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/lib/highline/style.rb +181 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/lib/highline/system_extensions.rb +222 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/setup.rb +1360 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/site/.cvsignore +1 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/site/highline.css +65 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/site/images/logo.png +0 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/site/index.html +58 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/test/string_methods.rb +32 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/test/tc_color_scheme.rb +96 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/test/tc_highline.rb +1128 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/test/tc_import.rb +52 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/test/tc_menu.rb +439 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/test/tc_string_extension.rb +20 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/test/tc_string_highline.rb +38 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/test/tc_style.rb +567 -0
- data/vendor/ruby/1.9.1/gems/highline-1.6.19/test/ts_all.rb +16 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/.gemtest +0 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/.travis.yml +17 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/.yardopts +1 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/Gemfile +2 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/LICENSE +25 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/README.markdown +91 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/Rakefile +79 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/lib/method_source.rb +141 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/lib/method_source/code_helpers.rb +139 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/lib/method_source/source_location.rb +138 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/lib/method_source/version.rb +3 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/method_source.gemspec +33 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/test/test.rb +138 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/test/test_code_helpers.rb +41 -0
- data/vendor/ruby/1.9.1/gems/method_source-0.8.1/test/test_helper.rb +98 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/.document +2 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/.gitignore +16 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/.travis.yml +21 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/.yardopts +1 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/CHANGELOG +534 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/CONTRIBUTORS +55 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/Gemfile +9 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/Guardfile +62 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/LICENSE +25 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/README.markdown +400 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/Rakefile +140 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/TODO +117 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/bin/pry +16 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry.rb +271 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/cli.rb +202 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/code.rb +385 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/code/code_range.rb +70 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/code/loc.rb +92 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/code_object.rb +153 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/command.rb +689 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/command_set.rb +400 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands.rb +6 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/amend_line.rb +99 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/bang.rb +20 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/bang_pry.rb +17 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/cat.rb +53 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/cat/abstract_formatter.rb +27 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/cat/exception_formatter.rb +78 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/cat/file_formatter.rb +84 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/cat/input_expression_formatter.rb +43 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/cd.rb +30 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/code_collector.rb +165 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/disable_pry.rb +27 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/disabled_commands.rb +2 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/easter_eggs.rb +112 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/edit.rb +207 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/edit/exception_patcher.rb +25 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/edit/file_and_line_locator.rb +38 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/edit/method_patcher.rb +122 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/exit.rb +42 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/exit_all.rb +29 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/exit_program.rb +24 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/find_method.rb +199 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/fix_indent.rb +19 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/gem_cd.rb +26 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/gem_install.rb +29 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/gem_list.rb +33 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/gem_open.rb +29 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/gist.rb +102 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/help.rb +164 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/hist.rb +161 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/import_set.rb +22 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/install_command.rb +51 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/jump_to.rb +29 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/ls.rb +338 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/nesting.rb +25 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/play.rb +69 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/pry_backtrace.rb +26 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/pry_version.rb +17 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/raise_up.rb +32 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/reload_code.rb +65 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/reset.rb +18 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/ri.rb +56 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/save_file.rb +61 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/shell_command.rb +43 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/shell_mode.rb +27 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/show_doc.rb +78 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/show_info.rb +200 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/show_input.rb +17 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/show_source.rb +38 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/simple_prompt.rb +22 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/stat.rb +40 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/switch_to.rb +23 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/toggle_color.rb +20 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/whereami.rb +182 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/wtf.rb +57 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/completion.rb +304 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/config.rb +244 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/core_extensions.rb +121 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/custom_completions.rb +6 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/editor.rb +129 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/helpers.rb +5 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/helpers/base_helpers.rb +200 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/helpers/command_helpers.rb +154 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/helpers/documentation_helpers.rb +76 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/helpers/options_helpers.rb +27 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/helpers/table.rb +109 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/helpers/text.rb +108 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/history.rb +122 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/history_array.rb +116 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/hooks.rb +250 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/indent.rb +406 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/method.rb +551 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/method/disowned.rb +53 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/method/weird_method_locator.rb +186 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/module_candidate.rb +146 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/pager.rb +90 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/plugins.rb +103 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/pry_class.rb +469 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/pry_instance.rb +763 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/rbx_method.rb +13 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/rbx_path.rb +22 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/repl_file_loader.rb +80 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/rubygem.rb +74 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/terminal.rb +78 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/test/helper.rb +185 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/version.rb +3 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/wrapped_module.rb +383 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/man/pry.1 +195 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/man/pry.1.html +204 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/man/pry.1.ronn +141 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/pry.gemspec +30 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/Procfile +3 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/cli_spec.rb +78 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/code_object_spec.rb +277 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/code_spec.rb +219 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/command_helpers_spec.rb +29 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/command_integration_spec.rb +644 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/command_set_spec.rb +627 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/command_spec.rb +821 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/amend_line_spec.rb +247 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/bang_spec.rb +19 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/cat_spec.rb +164 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/cd_spec.rb +250 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/disable_pry_spec.rb +25 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/edit_spec.rb +727 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/exit_all_spec.rb +34 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/exit_program_spec.rb +19 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/exit_spec.rb +34 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/find_method_spec.rb +70 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/gem_list_spec.rb +26 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/gist_spec.rb +79 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/help_spec.rb +56 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/hist_spec.rb +181 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/jump_to_spec.rb +15 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/ls_spec.rb +181 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/play_spec.rb +140 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/raise_up_spec.rb +56 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/save_file_spec.rb +177 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/show_doc_spec.rb +510 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/show_input_spec.rb +17 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/show_source_spec.rb +782 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/whereami_spec.rb +203 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/completion_spec.rb +239 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/control_d_handler_spec.rb +58 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/documentation_helper_spec.rb +73 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/editor_spec.rb +79 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/exception_whitelist_spec.rb +21 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/fixtures/candidate_helper1.rb +11 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/fixtures/candidate_helper2.rb +8 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/fixtures/example.erb +5 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/fixtures/example_nesting.rb +33 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/fixtures/show_source_doc_examples.rb +15 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/fixtures/testrc +2 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/fixtures/testrcbad +2 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/fixtures/whereami_helper.rb +6 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/helper.rb +34 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/helpers/bacon.rb +86 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/helpers/mock_pry.rb +43 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/helpers/table_spec.rb +105 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/history_array_spec.rb +67 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/hooks_spec.rb +522 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/indent_spec.rb +301 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/input_stack_spec.rb +90 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/method_spec.rb +482 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/prompt_spec.rb +60 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/pry_defaults_spec.rb +419 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/pry_history_spec.rb +99 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/pry_output_spec.rb +95 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/pry_spec.rb +504 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/run_command_spec.rb +25 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/sticky_locals_spec.rb +157 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/syntax_checking_spec.rb +81 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/wrapped_module_spec.rb +261 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/wiki/Customizing-pry.md +397 -0
- data/vendor/ruby/1.9.1/gems/pry-0.9.12.2/wiki/Home.md +4 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/.gemtest +0 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/CHANGES +530 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/MIT-LICENSE +21 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/README.rdoc +187 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/Rakefile +375 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/TODO +21 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/bin/rake +33 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/install.rb +90 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake.rb +71 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/alt_system.rb +109 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb +681 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/backtrace.rb +19 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/clean.rb +32 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/cloneable.rb +16 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/contrib/compositepublisher.rb +21 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/contrib/ftptools.rb +151 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/contrib/publisher.rb +73 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/contrib/rubyforgepublisher.rb +16 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/contrib/sshpublisher.rb +50 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/contrib/sys.rb +1 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/default_loader.rb +10 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/dsl_definition.rb +156 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/early_time.rb +18 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/ext/core.rb +27 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/ext/module.rb +0 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/ext/string.rb +168 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/ext/time.rb +15 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/file_creation_task.rb +24 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/file_list.rb +410 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/file_task.rb +47 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/file_utils.rb +114 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/file_utils_ext.rb +143 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/gempackagetask.rb +1 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/invocation_chain.rb +51 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/invocation_exception_mixin.rb +16 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/loaders/makefile.rb +40 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/multi_task.rb +13 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/name_space.rb +25 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/packagetask.rb +185 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/pathmap.rb +1 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/phony.rb +15 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/private_reader.rb +20 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/promise.rb +99 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/pseudo_status.rb +24 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rake_module.rb +37 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rake_test_loader.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rdoctask.rb +1 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/ruby182_test_unit_fix.rb +25 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rule_recursion_overflow_error.rb +20 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/runtest.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb +368 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task_argument_error.rb +7 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task_arguments.rb +78 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task_manager.rb +296 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/tasklib.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/testtask.rb +198 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/thread_history_display.rb +48 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/thread_pool.rb +155 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/trace_output.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/version.rb +13 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/lib/rake/win32.rb +55 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/file_creation.rb +34 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/helper.rb +562 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_private_reader.rb +42 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake.rb +40 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_application.rb +515 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_application_options.rb +455 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_backtrace.rb +89 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_clean.rb +14 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_definitions.rb +80 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_directory_task.rb +57 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_dsl.rb +40 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_early_time.rb +31 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_extension.rb +59 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_file_creation_task.rb +56 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_file_list.rb +628 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_file_list_path_map.rb +8 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_file_task.rb +122 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_file_utils.rb +305 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_ftp_file.rb +59 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_functional.rb +496 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_invocation_chain.rb +52 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_makefile_loader.rb +44 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_multi_task.rb +59 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_name_space.rb +43 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_package_task.rb +79 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_path_map.rb +157 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_path_map_explode.rb +34 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_path_map_partial.rb +18 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_pseudo_status.rb +21 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_rake_test_loader.rb +21 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_reduce_compat.rb +30 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_require.rb +40 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_rules.rb +327 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_task.rb +340 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_task_argument_parsing.rb +103 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_task_arguments.rb +88 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_task_lib.rb +9 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_task_manager.rb +157 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_task_manager_argument_resolution.rb +19 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_task_with_arguments.rb +171 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_test_task.rb +120 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_thread_pool.rb +122 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_top_level_functions.rb +71 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_win32.rb +72 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_thread_history_display.rb +91 -0
- data/vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_trace_output.rb +50 -0
- data/vendor/ruby/1.9.1/gems/rspec-2.13.0/License.txt +24 -0
- data/vendor/ruby/1.9.1/gems/rspec-2.13.0/README.md +47 -0
- data/vendor/ruby/1.9.1/gems/rspec-2.13.0/lib/rspec.rb +4 -0
- data/vendor/ruby/1.9.1/gems/rspec-2.13.0/lib/rspec/version.rb +5 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/.document +5 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/.yardopts +6 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/Changelog.md +718 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/License.txt +24 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/README.md +261 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/exe/autospec +13 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/exe/rspec +25 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/Autotest.md +38 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/README.md +17 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/Upgrade.md +364 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/README.md +28 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/example_name_option.feature +97 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/exit_status.feature +82 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/format_option.feature +81 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/init.feature +18 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/line_number_appended_to_path.feature +140 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/line_number_option.feature +58 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/order.feature +29 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/pattern_option.feature +31 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/rake_task.feature +122 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/ruby.feature +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/tag.feature +98 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/alias_example_to.feature +48 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/backtrace_clean_patterns.feature +102 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/custom_settings.feature +84 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/default_path.feature +38 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/fail_fast.feature +77 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/failure_exit_code.feature +36 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/order_and_seed.feature +3 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/output_stream.feature +24 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/pattern.feature +30 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/profile.feature +163 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/read_options_from_file.feature +87 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/run_all_when_everything_filtered.feature +60 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/show_failures_in_pending_blocks.feature +61 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/configuration/treat_symbols_as_metadata_keys_with_true_values.feature +52 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/example_groups/basic_structure.feature +55 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/example_groups/shared_context.feature +74 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/example_groups/shared_examples.feature +222 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/expectation_framework_integration/configure_expectation_framework.feature +102 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/filtering/exclusion_filters.feature +138 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/filtering/if_and_unless.feature +168 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/filtering/inclusion_filters.feature +105 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/filtering/run_all_when_everything_filtered.feature +46 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/formatters/configurable_colors.feature +31 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/formatters/custom_formatter.feature +36 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/formatters/json_formatter.feature +30 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/formatters/text_formatter.feature +46 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/helper_methods/arbitrary_methods.feature +40 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/helper_methods/let.feature +50 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/helper_methods/modules.feature +149 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/hooks/around_hooks.feature +343 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/hooks/before_and_after_hooks.feature +427 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/hooks/filtering.feature +234 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/metadata/current_example.feature +17 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/metadata/described_class.feature +17 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/metadata/user_defined.feature +113 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/mock_framework_integration/use_any_framework.feature +106 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/mock_framework_integration/use_flexmock.feature +96 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/mock_framework_integration/use_mocha.feature +97 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/mock_framework_integration/use_rr.feature +98 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/mock_framework_integration/use_rspec.feature +97 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/pending/pending_examples.feature +229 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/spec_files/arbitrary_file_suffix.feature +13 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/step_definitions/additional_cli_steps.rb +49 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/subject/attribute_of_subject.feature +124 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/subject/explicit_subject.feature +101 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/subject/implicit_receiver.feature +29 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/subject/implicit_subject.feature +63 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/support/env.rb +14 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/autotest/discover.rb +1 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/autotest/rspec2.rb +73 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/autorun.rb +2 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core.rb +146 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/backward_compatibility.rb +65 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/command_line.rb +36 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb +1087 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/configuration_options.rb +144 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/deprecation.rb +36 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/drb_command_line.rb +26 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/drb_options.rb +87 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/dsl.rb +26 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/example.rb +331 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/example_group.rb +478 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/extensions/instance_eval_with_args.rb +44 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/extensions/kernel.rb +9 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/extensions/module_eval_with_args.rb +38 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/extensions/ordered.rb +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/filter_manager.rb +203 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters.rb +55 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters/base_formatter.rb +237 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters/base_text_formatter.rb +292 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters/documentation_formatter.rb +67 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters/helpers.rb +103 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters/html_formatter.rb +154 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters/html_printer.rb +407 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters/json_formatter.rb +73 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters/progress_formatter.rb +32 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters/snippet_extractor.rb +92 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters/text_mate_formatter.rb +34 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/hooks.rb +489 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/load_path.rb +3 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/memoized_helpers.rb +501 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/metadata.rb +297 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/metadata_hash_builder.rb +97 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/mocking/with_absolutely_nothing.rb +11 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/mocking/with_flexmock.rb +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/mocking/with_mocha.rb +52 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/mocking/with_rr.rb +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/mocking/with_rspec.rb +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/option_parser.rb +208 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/pending.rb +108 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/project_initializer.rb +86 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/rake_task.rb +202 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/reporter.rb +102 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/ruby_project.rb +44 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb +87 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/shared_context.rb +49 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/shared_example_group.rb +144 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/version.rb +7 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/world.rb +128 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/autotest/discover_spec.rb +19 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/autotest/failed_results_re_spec.rb +45 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/autotest/rspec_spec.rb +133 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/command_line/order_spec.rb +204 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/command_line_spec.rb +108 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/command_line_spec_output.txt +0 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/configuration_options_spec.rb +398 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/configuration_spec.rb +1376 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/deprecations_spec.rb +75 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/drb_command_line_spec.rb +102 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/drb_options_spec.rb +193 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/dsl_spec.rb +25 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/example_group_spec.rb +1176 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/example_spec.rb +418 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/filter_manager_spec.rb +246 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/base_formatter_spec.rb +108 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/base_text_formatter_spec.rb +429 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/documentation_formatter_spec.rb +88 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/helpers_spec.rb +78 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/html_formatted-1.8.7-jruby.html +398 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/html_formatted-1.8.7-rbx.html +577 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/html_formatted-1.8.7.html +409 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/html_formatted-1.9.2.html +416 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/html_formatted-1.9.3-jruby.html +410 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/html_formatted-1.9.3-rbx.html +577 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/html_formatted-1.9.3.html +416 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/html_formatted-2.0.0.html +416 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/html_formatter_spec.rb +94 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/json_formatter_spec.rb +110 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/progress_formatter_spec.rb +30 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/snippet_extractor_spec.rb +26 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/text_mate_formatted-1.8.7-jruby.html +398 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/text_mate_formatted-1.8.7-rbx.html +577 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/text_mate_formatted-1.8.7.html +409 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/text_mate_formatted-1.9.2.html +416 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/text_mate_formatted-1.9.3-jruby.html +398 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/text_mate_formatted-1.9.3-rbx.html +577 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/text_mate_formatted-1.9.3.html +416 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/text_mate_formatted-2.0.0.html +416 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/formatters/text_mate_formatter_spec.rb +95 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/hooks_filtering_spec.rb +227 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/hooks_spec.rb +267 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/kernel_extensions_spec.rb +9 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/memoized_helpers_spec.rb +642 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/metadata_spec.rb +486 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/option_parser_spec.rb +208 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/pending_example_spec.rb +220 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/project_initializer_spec.rb +130 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/rake_task_spec.rb +181 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/reporter_spec.rb +120 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/resources/a_bar.rb +0 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/resources/a_foo.rb +0 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/resources/a_spec.rb +1 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/resources/custom_example_group_runner.rb +14 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/resources/formatter_specs.rb +60 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/resources/utf8_encoded.rb +8 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/rspec_matchers_spec.rb +45 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/ruby_project_spec.rb +26 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/runner_spec.rb +82 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/shared_context_spec.rb +94 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/shared_example_group_spec.rb +96 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/world_spec.rb +144 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core_spec.rb +35 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/spec_helper.rb +132 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/support/config_options_helper.rb +15 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/support/helper_methods.rb +18 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/support/isolated_directory.rb +10 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/support/isolated_home_directory.rb +16 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/support/matchers.rb +65 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/support/shared_example_groups.rb +41 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/support/spec_files.rb +44 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/.document +5 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/.yardopts +6 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/Changelog.md +328 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/License.txt +23 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/README.md +228 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/README.md +49 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/Upgrade.md +53 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/README.md +90 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/be.feature +175 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/be_within.feature +48 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/cover.feature +47 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/end_with.feature +48 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/equality.feature +139 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/exist.feature +45 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/expect_change.feature +59 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/expect_error.feature +144 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/have.feature +109 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/include.feature +174 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/match.feature +52 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/operators.feature +227 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/predicates.feature +137 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/respond_to.feature +84 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/satisfy.feature +33 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/start_with.feature +48 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/throw_symbol.feature +91 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/types.feature +116 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/built_in_matchers/yield.feature +146 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/custom_matchers/access_running_example.feature +53 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/custom_matchers/define_diffable_matcher.feature +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/custom_matchers/define_matcher.feature +368 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/custom_matchers/define_matcher_outside_rspec.feature +38 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/custom_matchers/define_matcher_with_fluent_interface.feature +24 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/customized_message.feature +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/diffing.feature +85 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/implicit_docstrings.feature +52 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/step_definitions/additional_cli_steps.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/support/env.rb +5 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/syntax_configuration.feature +68 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/features/test_frameworks/test_unit.feature +46 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec-expectations.rb +1 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations.rb +47 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/deprecation.rb +38 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/differ.rb +115 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/errors.rb +9 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/expectation_target.rb +88 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/extensions.rb +2 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/extensions/array.rb +9 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/extensions/object.rb +39 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/fail_with.rb +69 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/handler.rb +63 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/syntax.rb +164 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/version.rb +8 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers.rb +699 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/be_close.rb +9 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in.rb +39 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/base_matcher.rb +68 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/be.rb +189 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/be_instance_of.rb +15 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/be_kind_of.rb +11 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/be_within.rb +55 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/change.rb +133 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/cover.rb +21 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/eq.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/eql.rb +23 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/equal.rb +48 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/exist.rb +26 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/has.rb +48 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/have.rb +108 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/include.rb +69 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/match.rb +12 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/match_array.rb +51 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/raise_error.rb +107 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/respond_to.rb +74 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/satisfy.rb +30 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/start_and_end_with.rb +48 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/throw_symbol.rb +94 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/built_in/yield.rb +221 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/compatibility.rb +14 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/configuration.rb +108 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/dsl.rb +24 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/extensions/instance_eval_with_args.rb +39 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/generated_descriptions.rb +35 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/matcher.rb +300 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/method_missing.rb +12 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/operator_matcher.rb +109 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/pretty.rb +64 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/expectations/differ_spec.rb +170 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/expectations/expectation_target_spec.rb +75 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/expectations/extensions/kernel_spec.rb +67 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/expectations/fail_with_spec.rb +95 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/expectations/handler_spec.rb +206 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/expectations/syntax_spec.rb +97 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/base_matcher_spec.rb +62 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/be_close_spec.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/be_instance_of_spec.rb +63 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/be_kind_of_spec.rb +41 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/be_spec.rb +516 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/be_within_spec.rb +129 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/change_spec.rb +542 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/configuration_spec.rb +238 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/cover_spec.rb +69 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/description_generation_spec.rb +176 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/dsl_spec.rb +57 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/eq_spec.rb +60 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/eql_spec.rb +41 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/equal_spec.rb +78 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/exist_spec.rb +124 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/has_spec.rb +122 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/have_spec.rb +445 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/include_matcher_integration_spec.rb +30 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/include_spec.rb +531 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/match_array_spec.rb +194 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/match_spec.rb +61 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/matcher_spec.rb +471 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/matchers_spec.rb +37 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/method_missing_spec.rb +28 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/operator_matcher_spec.rb +223 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/raise_error_spec.rb +395 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/respond_to_spec.rb +292 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/satisfy_spec.rb +44 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/start_with_end_with_spec.rb +186 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/throw_symbol_spec.rb +116 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/rspec/matchers/yield_spec.rb +437 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/spec_helper.rb +54 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/support/classes.rb +56 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/support/in_sub_process.rb +38 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/support/matchers.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/support/ruby_version.rb +10 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/spec/support/shared_examples.rb +13 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/.document +5 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/.yardopts +6 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/Changelog.md +306 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/License.txt +23 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/README.md +315 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/README.md +67 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/Scope.md +17 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/Upgrade.md +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/argument_matchers/README.md +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/argument_matchers/explicit.feature +60 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/argument_matchers/general_matchers.feature +85 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/argument_matchers/type_matchers.feature +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/message_expectations/README.md +73 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/message_expectations/any_instance.feature +21 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/message_expectations/block_local_expectations.feature.pending +55 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/message_expectations/call_original.feature +24 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/message_expectations/expect_message.feature +94 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/message_expectations/receive_counts.feature +209 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/message_expectations/warn_when_expectation_is_set_on_nil.feature +50 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/method_stubs/README.md +47 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/method_stubs/any_instance.feature +132 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/method_stubs/as_null_object.feature +35 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/method_stubs/simple_return_value.feature +64 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/method_stubs/stub_chain.feature +51 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/method_stubs/stub_implementation.feature +26 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/method_stubs/to_ary.feature +47 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/mutating_constants/README.md +82 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/mutating_constants/hiding_defined_constant.feature +64 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/mutating_constants/stub_defined_constant.feature +79 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/mutating_constants/stub_undefined_constant.feature +50 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/outside_rspec/configuration.feature +82 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/outside_rspec/standalone.feature +33 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/step_definitions/additional_cli_steps.rb +4 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/features/support/env.rb +13 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks.rb +82 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/any_instance.rb +81 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/any_instance/chain.rb +78 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/any_instance/expectation_chain.rb +66 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/any_instance/message_chains.rb +60 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/any_instance/recorder.rb +204 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/any_instance/stub_chain.rb +37 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/any_instance/stub_chain_chain.rb +25 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/argument_list_matcher.rb +93 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/argument_matchers.rb +238 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/configuration.rb +28 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/error_generator.rb +120 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/errors.rb +12 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/example_methods.rb +120 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/extensions/instance_exec.rb +34 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/extensions/marshal.rb +23 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/extensions/psych.rb +23 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/framework.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/instance_method_stasher.rb +85 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/message_expectation.rb +567 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/method_double.rb +267 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/methods.rb +155 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/mock.rb +7 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/mutate_const.rb +415 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/order_group.rb +40 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/proxy.rb +205 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/serialization.rb +34 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/space.rb +34 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/standalone.rb +3 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/test_double.rb +103 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/rspec/mocks/version.rb +7 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/lib/spec/mocks.rb +6 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/and_call_original_spec.rb +235 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/and_yield_spec.rb +127 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/any_instance/message_chains_spec.rb +40 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/any_instance_spec.rb +925 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/any_number_of_times_spec.rb +30 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/argument_expectation_spec.rb +34 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/at_least_spec.rb +142 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/at_most_spec.rb +90 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/block_return_value_spec.rb +53 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/bug_report_10260_spec.rb +8 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/bug_report_10263_spec.rb +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/bug_report_11545_spec.rb +32 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/bug_report_496_spec.rb +17 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/bug_report_600_spec.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/bug_report_7611_spec.rb +16 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/bug_report_8165_spec.rb +31 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/bug_report_830_spec.rb +21 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/bug_report_957_spec.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/combining_implementation_instructions_spec.rb +197 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/configuration_spec.rb +26 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/double_spec.rb +12 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/failing_argument_matchers_spec.rb +94 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/hash_excluding_matcher_spec.rb +67 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/hash_including_matcher_spec.rb +90 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/instance_method_stasher_spec.rb +58 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/mock_ordering_spec.rb +103 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/mock_space_spec.rb +58 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/mock_spec.rb +734 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/multiple_return_value_spec.rb +132 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/mutate_const_spec.rb +481 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/nil_expectation_warning_spec.rb +62 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/null_object_mock_spec.rb +107 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/once_counts_spec.rb +52 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/options_hash_spec.rb +35 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/partial_mock_spec.rb +196 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/partial_mock_using_mocks_directly_spec.rb +95 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/passing_argument_matchers_spec.rb +142 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/precise_counts_spec.rb +68 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/record_messages_spec.rb +26 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/serialization_spec.rb +110 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/stash_spec.rb +54 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/stub_chain_spec.rb +154 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/stub_implementation_spec.rb +81 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/stub_spec.rb +279 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/stubbed_message_expectations_spec.rb +58 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/test_double_spec.rb +57 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/to_ary_spec.rb +40 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/twice_counts_spec.rb +66 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks_spec.rb +67 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/spec_helper.rb +36 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.5/.gitignore +7 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.5/.travis.yml +12 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.5/CHANGES.md +290 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.5/Gemfile +3 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.5/LICENSE +20 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.5/README.md +182 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.5/Rakefile +29 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.5/lib/slop.rb +689 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.5/lib/slop/commands.rb +196 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.5/lib/slop/option.rb +208 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.5/slop.gemspec +17 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.5/test/commands_test.rb +26 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.5/test/helper.rb +12 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.5/test/option_test.rb +134 -0
- data/vendor/ruby/1.9.1/gems/slop-3.4.5/test/slop_test.rb +497 -0
- data/vendor/ruby/1.9.1/specifications/coderay-1.0.9.gemspec +32 -0
- data/vendor/ruby/1.9.1/specifications/diff-lcs-1.2.4.gemspec +64 -0
- data/vendor/ruby/1.9.1/specifications/highline-1.6.19.gemspec +30 -0
- data/vendor/ruby/1.9.1/specifications/method_source-0.8.1.gemspec +31 -0
- data/vendor/ruby/1.9.1/specifications/pry-0.9.12.2.gemspec +54 -0
- data/vendor/ruby/1.9.1/specifications/rake-10.0.4.gemspec +35 -0
- data/vendor/ruby/1.9.1/specifications/rspec-2.13.0.gemspec +39 -0
- data/vendor/ruby/1.9.1/specifications/rspec-core-2.13.1.gemspec +58 -0
- data/vendor/ruby/1.9.1/specifications/rspec-expectations-2.13.0.gemspec +40 -0
- data/vendor/ruby/1.9.1/specifications/rspec-mocks-2.13.1.gemspec +37 -0
- data/vendor/ruby/1.9.1/specifications/slop-3.4.5.gemspec +33 -0
- metadata +1105 -0
data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/hash_including_matcher_spec.rb
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
|
|
3
|
+
module RSpec
|
|
4
|
+
module Mocks
|
|
5
|
+
module ArgumentMatchers
|
|
6
|
+
describe HashIncludingMatcher do
|
|
7
|
+
|
|
8
|
+
it "describes itself properly" do
|
|
9
|
+
expect(HashIncludingMatcher.new(:a => 1).description).to eq "hash_including(:a=>1)"
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
describe "passing" do
|
|
13
|
+
it "matches the same hash" do
|
|
14
|
+
expect(hash_including(:a => 1)).to eq({:a => 1})
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
it "matches a hash with extra stuff" do
|
|
18
|
+
expect(hash_including(:a => 1)).to eq({:a => 1, :b => 2})
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
describe "when matching against other matchers" do
|
|
22
|
+
it "matches an int against anything()" do
|
|
23
|
+
expect(hash_including(:a => anything, :b => 2)).to eq({:a => 1, :b => 2})
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
it "matches a string against anything()" do
|
|
27
|
+
expect(hash_including(:a => anything, :b => 2)).to eq({:a => "1", :b => 2})
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
describe "when passed only keys or keys mixed with key/value pairs" do
|
|
32
|
+
it "matches if the key is present" do
|
|
33
|
+
expect(hash_including(:a)).to eq({:a => 1, :b => 2})
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
it "matches if more keys are present" do
|
|
37
|
+
expect(hash_including(:a, :b)).to eq({:a => 1, :b => 2, :c => 3})
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
it "matches a string against a given key" do
|
|
41
|
+
expect(hash_including(:a)).to eq({:a => "1", :b => 2})
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
it "matches if passed one key and one key/value pair" do
|
|
45
|
+
expect(hash_including(:a, :b => 2)).to eq({:a => 1, :b => 2})
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
it "matches if passed many keys and one key/value pair" do
|
|
49
|
+
expect(hash_including(:a, :b, :c => 3)).to eq({:a => 1, :b => 2, :c => 3, :d => 4})
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
it "matches if passed many keys and many key/value pairs" do
|
|
53
|
+
expect(hash_including(:a, :b, :c => 3, :e => 5)).to eq({:a => 1, :b => 2, :c => 3, :d => 4, :e => 5})
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
describe "failing" do
|
|
59
|
+
it "does not match a non-hash" do
|
|
60
|
+
expect(hash_including(:a => 1)).not_to eq 1
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
it "does not match a hash with a missing key" do
|
|
64
|
+
expect(hash_including(:a => 1)).not_to eq(:b => 2)
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
it "does not match a hash with a missing key" do
|
|
68
|
+
expect(hash_including(:a)).not_to eq(:b => 2)
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
it "does not match an empty hash with a given key" do
|
|
72
|
+
expect(hash_including(:a)).not_to eq({})
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
it "does not match a hash with a missing key when one pair is matching" do
|
|
76
|
+
expect(hash_including(:a, :b => 2)).not_to eq(:b => 2)
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
it "does not match a hash with an incorrect value" do
|
|
80
|
+
expect(hash_including(:a => 1, :b => 2)).not_to eq(:a => 1, :b => 3)
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
it "does not match when values are nil but keys are different" do
|
|
84
|
+
expect(hash_including(:a => nil)).not_to eq(:b => nil)
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|
data/vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/instance_method_stasher_spec.rb
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
|
|
3
|
+
module RSpec
|
|
4
|
+
module Mocks
|
|
5
|
+
describe InstanceMethodStasher do
|
|
6
|
+
class ExampleClass
|
|
7
|
+
def hello
|
|
8
|
+
:hello_defined_on_class
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def singleton_class_for(obj)
|
|
13
|
+
class << obj; self; end
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
it "stashes the current implementation of an instance method so it can be temporarily replaced" do
|
|
17
|
+
obj = Object.new
|
|
18
|
+
def obj.hello; :hello_defined_on_singleton_class; end;
|
|
19
|
+
|
|
20
|
+
stashed_method = InstanceMethodStasher.new(singleton_class_for(obj), :hello)
|
|
21
|
+
stashed_method.stash
|
|
22
|
+
|
|
23
|
+
def obj.hello; :overridden_hello; end
|
|
24
|
+
expect(obj.hello).to eql :overridden_hello
|
|
25
|
+
|
|
26
|
+
stashed_method.restore
|
|
27
|
+
expect(obj.hello).to eql :hello_defined_on_singleton_class
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
it "stashes private instance methods" do
|
|
31
|
+
obj = Object.new
|
|
32
|
+
def obj.hello; :hello_defined_on_singleton_class; end;
|
|
33
|
+
singleton_class_for(obj).__send__(:private, :hello)
|
|
34
|
+
|
|
35
|
+
stashed_method = InstanceMethodStasher.new(singleton_class_for(obj), :hello)
|
|
36
|
+
stashed_method.stash
|
|
37
|
+
|
|
38
|
+
def obj.hello; :overridden_hello; end
|
|
39
|
+
stashed_method.restore
|
|
40
|
+
expect(obj.send(:hello)).to eql :hello_defined_on_singleton_class
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
it "only stashes methods directly defined on the given class, not its ancestors" do
|
|
44
|
+
obj = ExampleClass.new
|
|
45
|
+
|
|
46
|
+
stashed_method = InstanceMethodStasher.new(singleton_class_for(obj), :hello)
|
|
47
|
+
stashed_method.stash
|
|
48
|
+
|
|
49
|
+
def obj.hello; :overridden_hello; end;
|
|
50
|
+
expect(obj.hello).to eql :overridden_hello
|
|
51
|
+
|
|
52
|
+
stashed_method.restore
|
|
53
|
+
expect(obj.hello).to eql :overridden_hello
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
|
|
3
|
+
module RSpec
|
|
4
|
+
module Mocks
|
|
5
|
+
|
|
6
|
+
describe "ordering" do
|
|
7
|
+
before { @double = double("test double") }
|
|
8
|
+
after { @double.rspec_reset }
|
|
9
|
+
|
|
10
|
+
it "passes when messages are received in order" do
|
|
11
|
+
@double.should_receive(:one).ordered
|
|
12
|
+
@double.should_receive(:two).ordered
|
|
13
|
+
@double.should_receive(:three).ordered
|
|
14
|
+
@double.one
|
|
15
|
+
@double.two
|
|
16
|
+
@double.three
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
it "passes when messages are received in order across objects" do
|
|
20
|
+
a = double("a")
|
|
21
|
+
b = double("b")
|
|
22
|
+
a.should_receive(:one).ordered
|
|
23
|
+
b.should_receive(:two).ordered
|
|
24
|
+
a.should_receive(:three).ordered
|
|
25
|
+
a.one
|
|
26
|
+
b.two
|
|
27
|
+
a.three
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
it "fails when messages are received out of order (2nd message 1st)" do
|
|
31
|
+
@double.should_receive(:one).ordered
|
|
32
|
+
@double.should_receive(:two).ordered
|
|
33
|
+
expect {
|
|
34
|
+
@double.two
|
|
35
|
+
}.to raise_error(RSpec::Mocks::MockExpectationError, "Double \"test double\" received :two out of order")
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
it "fails when messages are received out of order (3rd message 1st)" do
|
|
39
|
+
@double.should_receive(:one).ordered
|
|
40
|
+
@double.should_receive(:two).ordered
|
|
41
|
+
@double.should_receive(:three).ordered
|
|
42
|
+
@double.one
|
|
43
|
+
expect {
|
|
44
|
+
@double.three
|
|
45
|
+
}.to raise_error(RSpec::Mocks::MockExpectationError, "Double \"test double\" received :three out of order")
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
it "fails when messages are received out of order (3rd message 2nd)" do
|
|
49
|
+
@double.should_receive(:one).ordered
|
|
50
|
+
@double.should_receive(:two).ordered
|
|
51
|
+
@double.should_receive(:three).ordered
|
|
52
|
+
@double.one
|
|
53
|
+
expect {
|
|
54
|
+
@double.three
|
|
55
|
+
}.to raise_error(RSpec::Mocks::MockExpectationError, "Double \"test double\" received :three out of order")
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
it "fails when messages are out of order across objects" do
|
|
59
|
+
a = double("test double")
|
|
60
|
+
b = double("another test double")
|
|
61
|
+
a.should_receive(:one).ordered
|
|
62
|
+
b.should_receive(:two).ordered
|
|
63
|
+
a.should_receive(:three).ordered
|
|
64
|
+
a.one
|
|
65
|
+
expect {
|
|
66
|
+
a.three
|
|
67
|
+
}.to raise_error(RSpec::Mocks::MockExpectationError, "Double \"test double\" received :three out of order")
|
|
68
|
+
a.rspec_reset
|
|
69
|
+
b.rspec_reset
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
it "ignores order of non ordered messages" do
|
|
73
|
+
@double.should_receive(:ignored_0)
|
|
74
|
+
@double.should_receive(:ordered_1).ordered
|
|
75
|
+
@double.should_receive(:ignored_1)
|
|
76
|
+
@double.should_receive(:ordered_2).ordered
|
|
77
|
+
@double.should_receive(:ignored_2)
|
|
78
|
+
@double.should_receive(:ignored_3)
|
|
79
|
+
@double.should_receive(:ordered_3).ordered
|
|
80
|
+
@double.should_receive(:ignored_4)
|
|
81
|
+
@double.ignored_3
|
|
82
|
+
@double.ordered_1
|
|
83
|
+
@double.ignored_0
|
|
84
|
+
@double.ordered_2
|
|
85
|
+
@double.ignored_4
|
|
86
|
+
@double.ignored_2
|
|
87
|
+
@double.ordered_3
|
|
88
|
+
@double.ignored_1
|
|
89
|
+
@double.rspec_verify
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
it "supports duplicate messages" do
|
|
93
|
+
@double.should_receive(:a).ordered
|
|
94
|
+
@double.should_receive(:b).ordered
|
|
95
|
+
@double.should_receive(:a).ordered
|
|
96
|
+
|
|
97
|
+
@double.a
|
|
98
|
+
@double.b
|
|
99
|
+
@double.a
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
end
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
require 'rspec/mocks'
|
|
3
|
+
|
|
4
|
+
module RSpec
|
|
5
|
+
module Mocks
|
|
6
|
+
describe Space do
|
|
7
|
+
before :each do
|
|
8
|
+
@space = RSpec::Mocks::Space.new
|
|
9
|
+
klazz = Class.new do
|
|
10
|
+
def rspec_verify
|
|
11
|
+
@verified = true
|
|
12
|
+
end
|
|
13
|
+
def verified?
|
|
14
|
+
@verified
|
|
15
|
+
end
|
|
16
|
+
def rspec_reset
|
|
17
|
+
@reset = true
|
|
18
|
+
end
|
|
19
|
+
def reset?
|
|
20
|
+
@reset
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
@m1 = klazz.new
|
|
24
|
+
@m2 = klazz.new
|
|
25
|
+
end
|
|
26
|
+
it "verifies all mocks within" do
|
|
27
|
+
@space.add(@m1)
|
|
28
|
+
@space.add(@m2)
|
|
29
|
+
@space.verify_all
|
|
30
|
+
expect(@m1).to be_verified
|
|
31
|
+
expect(@m2).to be_verified
|
|
32
|
+
end
|
|
33
|
+
it "resets all mocks within" do
|
|
34
|
+
@space.add(m1 = double("mock1"))
|
|
35
|
+
@space.add(m2 = double("mock2"))
|
|
36
|
+
m1.should_receive(:rspec_reset)
|
|
37
|
+
m2.should_receive(:rspec_reset)
|
|
38
|
+
@space.reset_all
|
|
39
|
+
end
|
|
40
|
+
it "clears internal mocks on reset_all" do
|
|
41
|
+
@space.add(double("mock"))
|
|
42
|
+
@space.reset_all
|
|
43
|
+
expect(@space.instance_eval { receivers.empty? }).to be_true
|
|
44
|
+
end
|
|
45
|
+
it "resets the ordering" do
|
|
46
|
+
@space.reset_all
|
|
47
|
+
expect(@space.expectation_ordering).to be_empty
|
|
48
|
+
end
|
|
49
|
+
it "only adds an instance once" do
|
|
50
|
+
@space.add(m1 = double("mock1"))
|
|
51
|
+
@space.add(m1)
|
|
52
|
+
m1.should_receive(:rspec_verify)
|
|
53
|
+
@space.verify_all
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
@@ -0,0 +1,734 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
|
|
3
|
+
module RSpec
|
|
4
|
+
module Mocks
|
|
5
|
+
describe Mock do
|
|
6
|
+
before(:each) { @double = double("test double") }
|
|
7
|
+
after(:each) { @double.rspec_reset }
|
|
8
|
+
|
|
9
|
+
it "has method_missing as private" do
|
|
10
|
+
expect(RSpec::Mocks::Mock.private_instance_methods).to include_method(:method_missing)
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
it "does not respond_to? method_missing (because it's private)" do
|
|
14
|
+
expect(RSpec::Mocks::Mock.new).not_to respond_to(:method_missing)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
it "reports line number of expectation of unreceived message" do
|
|
18
|
+
expected_error_line = __LINE__; @double.should_receive(:wont_happen).with("x", 3)
|
|
19
|
+
begin
|
|
20
|
+
@double.rspec_verify
|
|
21
|
+
violated
|
|
22
|
+
rescue RSpec::Mocks::MockExpectationError => e
|
|
23
|
+
# NOTE - this regexp ended w/ $, but jruby adds extra info at the end of the line
|
|
24
|
+
expect(e.backtrace[0]).to match(/#{File.basename(__FILE__)}:#{expected_error_line}/)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
it "reports line number of expectation of unreceived message after #should_receive after similar stub" do
|
|
29
|
+
@double.stub(:wont_happen)
|
|
30
|
+
expected_error_line = __LINE__; @double.should_receive(:wont_happen).with("x", 3)
|
|
31
|
+
begin
|
|
32
|
+
@double.rspec_verify
|
|
33
|
+
violated
|
|
34
|
+
rescue RSpec::Mocks::MockExpectationError => e
|
|
35
|
+
# NOTE - this regexp ended w/ $, but jruby adds extra info at the end of the line
|
|
36
|
+
expect(e.backtrace[0]).to match(/#{File.basename(__FILE__)}:#{expected_error_line}/)
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
it "passes when not receiving message specified as not to be received" do
|
|
41
|
+
@double.should_not_receive(:not_expected)
|
|
42
|
+
@double.rspec_verify
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
it "warns when should_not_receive is followed by and_return" do
|
|
46
|
+
RSpec::Mocks.should_receive(:warn_deprecation).
|
|
47
|
+
with(/`and_return` with `should_not_receive` is deprecated/)
|
|
48
|
+
|
|
49
|
+
@double.should_not_receive(:do_something).and_return(1)
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
it "passes when receiving message specified as not to be received with different args" do
|
|
53
|
+
@double.should_not_receive(:message).with("unwanted text")
|
|
54
|
+
@double.should_receive(:message).with("other text")
|
|
55
|
+
@double.message "other text"
|
|
56
|
+
@double.rspec_verify
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
it "fails when receiving message specified as not to be received" do
|
|
60
|
+
@double.should_not_receive(:not_expected)
|
|
61
|
+
expect {
|
|
62
|
+
@double.not_expected
|
|
63
|
+
violated
|
|
64
|
+
}.to raise_error(
|
|
65
|
+
RSpec::Mocks::MockExpectationError,
|
|
66
|
+
%Q|(Double "test double").not_expected(no args)\n expected: 0 times\n received: 1 time|
|
|
67
|
+
)
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
it "fails when receiving message specified as not to be received with args" do
|
|
71
|
+
@double.should_not_receive(:not_expected).with("unexpected text")
|
|
72
|
+
expect {
|
|
73
|
+
@double.not_expected("unexpected text")
|
|
74
|
+
violated
|
|
75
|
+
}.to raise_error(
|
|
76
|
+
RSpec::Mocks::MockExpectationError,
|
|
77
|
+
%Q|(Double "test double").not_expected("unexpected text")\n expected: 0 times\n received: 1 time|
|
|
78
|
+
)
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
it "passes when receiving message specified as not to be received with wrong args" do
|
|
82
|
+
@double.should_not_receive(:not_expected).with("unexpected text")
|
|
83
|
+
@double.not_expected "really unexpected text"
|
|
84
|
+
@double.rspec_verify
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
it "allows block to calculate return values" do
|
|
88
|
+
@double.should_receive(:something).with("a","b","c").and_return { |a,b,c| c+b+a }
|
|
89
|
+
expect(@double.something("a","b","c")).to eq "cba"
|
|
90
|
+
@double.rspec_verify
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
it "allows parameter as return value" do
|
|
94
|
+
@double.should_receive(:something).with("a","b","c").and_return("booh")
|
|
95
|
+
expect(@double.something("a","b","c")).to eq "booh"
|
|
96
|
+
@double.rspec_verify
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
it "returns the previously stubbed value if no return value is set" do
|
|
100
|
+
@double.stub(:something).with("a","b","c").and_return(:stubbed_value)
|
|
101
|
+
@double.should_receive(:something).with("a","b","c")
|
|
102
|
+
expect(@double.something("a","b","c")).to eq :stubbed_value
|
|
103
|
+
@double.rspec_verify
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
it "returns nil if no return value is set and there is no previously stubbed value" do
|
|
107
|
+
@double.should_receive(:something).with("a","b","c")
|
|
108
|
+
expect(@double.something("a","b","c")).to be_nil
|
|
109
|
+
@double.rspec_verify
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
it "raises exception if args don't match when method called" do
|
|
113
|
+
@double.should_receive(:something).with("a","b","c").and_return("booh")
|
|
114
|
+
expect {
|
|
115
|
+
@double.something("a","d","c")
|
|
116
|
+
violated
|
|
117
|
+
}.to raise_error(RSpec::Mocks::MockExpectationError, "Double \"test double\" received :something with unexpected arguments\n expected: (\"a\", \"b\", \"c\")\n got: (\"a\", \"d\", \"c\")")
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
describe "even when a similar expectation with different arguments exist" do
|
|
121
|
+
it "raises exception if args don't match when method called, correctly reporting the offending arguments" do
|
|
122
|
+
@double.should_receive(:something).with("a","b","c").once
|
|
123
|
+
@double.should_receive(:something).with("z","x","c").once
|
|
124
|
+
expect {
|
|
125
|
+
@double.something("a","b","c")
|
|
126
|
+
@double.something("z","x","g")
|
|
127
|
+
}.to raise_error(RSpec::Mocks::MockExpectationError, "Double \"test double\" received :something with unexpected arguments\n expected: (\"z\", \"x\", \"c\")\n got: (\"z\", \"x\", \"g\")")
|
|
128
|
+
end
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
it "raises exception if args don't match when method called even when the method is stubbed" do
|
|
132
|
+
@double.stub(:something)
|
|
133
|
+
@double.should_receive(:something).with("a","b","c")
|
|
134
|
+
expect {
|
|
135
|
+
@double.something("a","d","c")
|
|
136
|
+
@double.rspec_verify
|
|
137
|
+
}.to raise_error(RSpec::Mocks::MockExpectationError, "Double \"test double\" received :something with unexpected arguments\n expected: (\"a\", \"b\", \"c\")\n got: (\"a\", \"d\", \"c\")")
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
it "raises exception if args don't match when method called even when using null_object" do
|
|
141
|
+
@double = double("test double").as_null_object
|
|
142
|
+
@double.should_receive(:something).with("a","b","c")
|
|
143
|
+
expect {
|
|
144
|
+
@double.something("a","d","c")
|
|
145
|
+
@double.rspec_verify
|
|
146
|
+
}.to raise_error(RSpec::Mocks::MockExpectationError, "Double \"test double\" received :something with unexpected arguments\n expected: (\"a\", \"b\", \"c\")\n got: (\"a\", \"d\", \"c\")")
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
describe 'with a method that has a default argument' do
|
|
150
|
+
it "raises an exception if the arguments don't match when the method is called, correctly reporting the offending arguments" do
|
|
151
|
+
def @double.method_with_default_argument(arg={}); end
|
|
152
|
+
@double.should_receive(:method_with_default_argument).with({})
|
|
153
|
+
|
|
154
|
+
expect {
|
|
155
|
+
@double.method_with_default_argument(nil)
|
|
156
|
+
@double.rspec_verify
|
|
157
|
+
}.to raise_error(RSpec::Mocks::MockExpectationError, "Double \"test double\" received :method_with_default_argument with unexpected arguments\n expected: ({})\n got: (nil)")
|
|
158
|
+
end
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
it "fails if unexpected method called" do
|
|
162
|
+
expect {
|
|
163
|
+
@double.something("a","b","c")
|
|
164
|
+
violated
|
|
165
|
+
}.to raise_error(RSpec::Mocks::MockExpectationError, "Double \"test double\" received unexpected message :something with (\"a\", \"b\", \"c\")")
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
it "uses block for expectation if provided" do
|
|
169
|
+
@double.should_receive(:something) do | a, b |
|
|
170
|
+
expect(a).to eq "a"
|
|
171
|
+
expect(b).to eq "b"
|
|
172
|
+
"booh"
|
|
173
|
+
end
|
|
174
|
+
expect(@double.something("a", "b")).to eq "booh"
|
|
175
|
+
@double.rspec_verify
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
it "fails if expectation block fails" do
|
|
179
|
+
@double.should_receive(:something) do |bool|
|
|
180
|
+
expect(bool).to be_true
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
expect {
|
|
184
|
+
@double.something false
|
|
185
|
+
}.to raise_error(RSpec::Expectations::ExpectationNotMetError)
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
context "with Ruby > 1.8.6", :unless => RUBY_VERSION.to_s == '1.8.6' do
|
|
189
|
+
it "passes proc to expectation block without an argument" do
|
|
190
|
+
# We eval this because Ruby 1.8.6's syntax parser barfs on { |&block| ... }
|
|
191
|
+
# and prevents the entire spec suite from running.
|
|
192
|
+
eval("@double.should_receive(:foo) {|&block| expect(block.call).to eq(:bar)}")
|
|
193
|
+
@double.foo { :bar }
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
it "passes proc to expectation block with an argument" do
|
|
197
|
+
eval("@double.should_receive(:foo) {|arg, &block| expect(block.call).to eq(:bar)}")
|
|
198
|
+
@double.foo(:arg) { :bar }
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
it "passes proc to stub block without an argurment" do
|
|
202
|
+
eval("@double.stub(:foo) {|&block| expect(block.call).to eq(:bar)}")
|
|
203
|
+
@double.foo { :bar }
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
it "passes proc to stub block with an argument" do
|
|
207
|
+
eval("@double.stub(:foo) {|arg, &block| expect(block.call).to eq(:bar)}")
|
|
208
|
+
@double.foo(:arg) { :bar }
|
|
209
|
+
end
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
it "fails right away when method defined as never is received" do
|
|
213
|
+
@double.should_receive(:not_expected).never
|
|
214
|
+
expect { @double.not_expected }.
|
|
215
|
+
to raise_error(RSpec::Mocks::MockExpectationError,
|
|
216
|
+
%Q|(Double "test double").not_expected(no args)\n expected: 0 times\n received: 1 time|
|
|
217
|
+
)
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
it "raises RuntimeError by default" do
|
|
221
|
+
@double.should_receive(:something).and_raise
|
|
222
|
+
expect { @double.something }.to raise_error(RuntimeError)
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
it "raises RuntimeError with a message by default" do
|
|
226
|
+
@double.should_receive(:something).and_raise("error message")
|
|
227
|
+
expect { @double.something }.to raise_error(RuntimeError, "error message")
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
it "raises an exception of a given type without an error message" do
|
|
231
|
+
@double.should_receive(:something).and_raise(StandardError)
|
|
232
|
+
expect { @double.something }.to raise_error(StandardError)
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
it "raises an exception of a given type with a message" do
|
|
236
|
+
@double.should_receive(:something).and_raise(RuntimeError, "error message")
|
|
237
|
+
expect { @double.something }.to raise_error(RuntimeError, "error message")
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
it "raises a given instance of an exception" do
|
|
241
|
+
@double.should_receive(:something).and_raise(RuntimeError.new("error message"))
|
|
242
|
+
expect { @double.something }.to raise_error(RuntimeError, "error message")
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
class OutOfGas < StandardError
|
|
246
|
+
attr_reader :amount, :units
|
|
247
|
+
def initialize(amount, units)
|
|
248
|
+
@amount = amount
|
|
249
|
+
@units = units
|
|
250
|
+
end
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
it "raises a given instance of an exception with arguments other than the standard 'message'" do
|
|
254
|
+
@double.should_receive(:something).and_raise(OutOfGas.new(2, :oz))
|
|
255
|
+
|
|
256
|
+
begin
|
|
257
|
+
@double.something
|
|
258
|
+
fail "OutOfGas was not raised"
|
|
259
|
+
rescue OutOfGas => e
|
|
260
|
+
expect(e.amount).to eq 2
|
|
261
|
+
expect(e.units).to eq :oz
|
|
262
|
+
end
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
it "does not raise when told to if args dont match" do
|
|
266
|
+
@double.should_receive(:something).with(2).and_raise(RuntimeError)
|
|
267
|
+
expect {
|
|
268
|
+
@double.something 1
|
|
269
|
+
}.to raise_error(RSpec::Mocks::MockExpectationError)
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
it "throws when told to" do
|
|
273
|
+
@double.should_receive(:something).and_throw(:blech)
|
|
274
|
+
expect {
|
|
275
|
+
@double.something
|
|
276
|
+
}.to throw_symbol(:blech)
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
it "ignores args on any args" do
|
|
280
|
+
@double.should_receive(:something).at_least(:once).with(any_args)
|
|
281
|
+
@double.something
|
|
282
|
+
@double.something 1
|
|
283
|
+
@double.something "a", 2
|
|
284
|
+
@double.something [], {}, "joe", 7
|
|
285
|
+
@double.rspec_verify
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
it "fails on no args if any args received" do
|
|
289
|
+
@double.should_receive(:something).with(no_args())
|
|
290
|
+
expect {
|
|
291
|
+
@double.something 1
|
|
292
|
+
}.to raise_error(RSpec::Mocks::MockExpectationError, "Double \"test double\" received :something with unexpected arguments\n expected: (no args)\n got: (1)")
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
it "fails when args are expected but none are received" do
|
|
296
|
+
@double.should_receive(:something).with(1)
|
|
297
|
+
expect {
|
|
298
|
+
@double.something
|
|
299
|
+
}.to raise_error(RSpec::Mocks::MockExpectationError, "Double \"test double\" received :something with unexpected arguments\n expected: (1)\n got: (no args)")
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
it "returns value from block by default" do
|
|
303
|
+
@double.stub(:method_that_yields).and_yield
|
|
304
|
+
value = @double.method_that_yields { :returned_obj }
|
|
305
|
+
expect(value).to eq :returned_obj
|
|
306
|
+
@double.rspec_verify
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
it "yields 0 args to blocks that take a variable number of arguments" do
|
|
310
|
+
@double.should_receive(:yield_back).with(no_args()).once.and_yield
|
|
311
|
+
a = nil
|
|
312
|
+
@double.yield_back {|*x| a = x}
|
|
313
|
+
expect(a).to eq []
|
|
314
|
+
@double.rspec_verify
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
it "yields 0 args multiple times to blocks that take a variable number of arguments" do
|
|
318
|
+
@double.should_receive(:yield_back).once.with(no_args()).once.and_yield.
|
|
319
|
+
and_yield
|
|
320
|
+
b = []
|
|
321
|
+
@double.yield_back {|*a| b << a}
|
|
322
|
+
expect(b).to eq [ [], [] ]
|
|
323
|
+
@double.rspec_verify
|
|
324
|
+
end
|
|
325
|
+
|
|
326
|
+
it "yields one arg to blocks that take a variable number of arguments" do
|
|
327
|
+
@double.should_receive(:yield_back).with(no_args()).once.and_yield(99)
|
|
328
|
+
a = nil
|
|
329
|
+
@double.yield_back {|*x| a = x}
|
|
330
|
+
expect(a).to eq [99]
|
|
331
|
+
@double.rspec_verify
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
it "yields one arg 3 times consecutively to blocks that take a variable number of arguments" do
|
|
335
|
+
@double.should_receive(:yield_back).once.with(no_args()).once.and_yield(99).
|
|
336
|
+
and_yield(43).
|
|
337
|
+
and_yield("something fruity")
|
|
338
|
+
b = []
|
|
339
|
+
@double.yield_back {|*a| b << a}
|
|
340
|
+
expect(b).to eq [[99], [43], ["something fruity"]]
|
|
341
|
+
@double.rspec_verify
|
|
342
|
+
end
|
|
343
|
+
|
|
344
|
+
it "yields many args to blocks that take a variable number of arguments" do
|
|
345
|
+
@double.should_receive(:yield_back).with(no_args()).once.and_yield(99, 27, "go")
|
|
346
|
+
a = nil
|
|
347
|
+
@double.yield_back {|*x| a = x}
|
|
348
|
+
expect(a).to eq [99, 27, "go"]
|
|
349
|
+
@double.rspec_verify
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
it "yields many args 3 times consecutively to blocks that take a variable number of arguments" do
|
|
353
|
+
@double.should_receive(:yield_back).once.with(no_args()).once.and_yield(99, :green, "go").
|
|
354
|
+
and_yield("wait", :amber).
|
|
355
|
+
and_yield("stop", 12, :red)
|
|
356
|
+
b = []
|
|
357
|
+
@double.yield_back {|*a| b << a}
|
|
358
|
+
expect(b).to eq [[99, :green, "go"], ["wait", :amber], ["stop", 12, :red]]
|
|
359
|
+
@double.rspec_verify
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
it "yields single value" do
|
|
363
|
+
@double.should_receive(:yield_back).with(no_args()).once.and_yield(99)
|
|
364
|
+
a = nil
|
|
365
|
+
@double.yield_back {|x| a = x}
|
|
366
|
+
expect(a).to eq 99
|
|
367
|
+
@double.rspec_verify
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
it "yields single value 3 times consecutively" do
|
|
371
|
+
@double.should_receive(:yield_back).once.with(no_args()).once.and_yield(99).
|
|
372
|
+
and_yield(43).
|
|
373
|
+
and_yield("something fruity")
|
|
374
|
+
b = []
|
|
375
|
+
@double.yield_back {|a| b << a}
|
|
376
|
+
expect(b).to eq [99, 43, "something fruity"]
|
|
377
|
+
@double.rspec_verify
|
|
378
|
+
end
|
|
379
|
+
|
|
380
|
+
it "yields two values" do
|
|
381
|
+
@double.should_receive(:yield_back).with(no_args()).once.and_yield('wha', 'zup')
|
|
382
|
+
a, b = nil
|
|
383
|
+
@double.yield_back {|x,y| a=x; b=y}
|
|
384
|
+
expect(a).to eq 'wha'
|
|
385
|
+
expect(b).to eq 'zup'
|
|
386
|
+
@double.rspec_verify
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
it "yields two values 3 times consecutively" do
|
|
390
|
+
@double.should_receive(:yield_back).once.with(no_args()).once.and_yield('wha', 'zup').
|
|
391
|
+
and_yield('not', 'down').
|
|
392
|
+
and_yield(14, 65)
|
|
393
|
+
c = []
|
|
394
|
+
@double.yield_back {|a,b| c << [a, b]}
|
|
395
|
+
expect(c).to eq [['wha', 'zup'], ['not', 'down'], [14, 65]]
|
|
396
|
+
@double.rspec_verify
|
|
397
|
+
end
|
|
398
|
+
|
|
399
|
+
it "fails when calling yielding method with wrong arity" do
|
|
400
|
+
@double.should_receive(:yield_back).with(no_args()).once.and_yield('wha', 'zup')
|
|
401
|
+
expect {
|
|
402
|
+
@double.yield_back {|a|}
|
|
403
|
+
}.to raise_error(RSpec::Mocks::MockExpectationError, "Double \"test double\" yielded |\"wha\", \"zup\"| to block with arity of 1")
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
it "fails when calling yielding method consecutively with wrong arity" do
|
|
407
|
+
@double.should_receive(:yield_back).once.with(no_args()).once.and_yield('wha', 'zup').
|
|
408
|
+
and_yield('down').
|
|
409
|
+
and_yield(14, 65)
|
|
410
|
+
expect {
|
|
411
|
+
c = []
|
|
412
|
+
@double.yield_back {|a,b| c << [a, b]}
|
|
413
|
+
}.to raise_error(RSpec::Mocks::MockExpectationError, "Double \"test double\" yielded |\"down\"| to block with arity of 2")
|
|
414
|
+
end
|
|
415
|
+
|
|
416
|
+
it "fails when calling yielding method without block" do
|
|
417
|
+
@double.should_receive(:yield_back).with(no_args()).once.and_yield('wha', 'zup')
|
|
418
|
+
expect {
|
|
419
|
+
@double.yield_back
|
|
420
|
+
}.to raise_error(RSpec::Mocks::MockExpectationError, "Double \"test double\" asked to yield |[\"wha\", \"zup\"]| but no block was passed")
|
|
421
|
+
end
|
|
422
|
+
|
|
423
|
+
it "is able to double send" do
|
|
424
|
+
@double.should_receive(:send).with(any_args)
|
|
425
|
+
@double.send 'hi'
|
|
426
|
+
@double.rspec_verify
|
|
427
|
+
end
|
|
428
|
+
|
|
429
|
+
it "is able to raise from method calling yielding double" do
|
|
430
|
+
@double.should_receive(:yield_me).and_yield 44
|
|
431
|
+
|
|
432
|
+
expect {
|
|
433
|
+
@double.yield_me do |x|
|
|
434
|
+
raise "Bang"
|
|
435
|
+
end
|
|
436
|
+
}.to raise_error(StandardError, "Bang")
|
|
437
|
+
|
|
438
|
+
@double.rspec_verify
|
|
439
|
+
end
|
|
440
|
+
|
|
441
|
+
it "clears expectations after verify" do
|
|
442
|
+
@double.should_receive(:foobar)
|
|
443
|
+
@double.foobar
|
|
444
|
+
@double.rspec_verify
|
|
445
|
+
expect {
|
|
446
|
+
@double.foobar
|
|
447
|
+
}.to raise_error(RSpec::Mocks::MockExpectationError, %q|Double "test double" received unexpected message :foobar with (no args)|)
|
|
448
|
+
end
|
|
449
|
+
|
|
450
|
+
it "restores objects to their original state on rspec_reset" do
|
|
451
|
+
double = double("this is a double")
|
|
452
|
+
double.should_receive(:blah)
|
|
453
|
+
double.rspec_reset
|
|
454
|
+
double.rspec_verify #should throw if reset didn't work
|
|
455
|
+
end
|
|
456
|
+
|
|
457
|
+
it "works even after method_missing starts raising NameErrors instead of NoMethodErrors" do
|
|
458
|
+
# Object#method_missing throws either NameErrors or NoMethodErrors.
|
|
459
|
+
#
|
|
460
|
+
# On a fresh ruby program Object#method_missing:
|
|
461
|
+
# * raises a NoMethodError when called directly
|
|
462
|
+
# * raises a NameError when called indirectly
|
|
463
|
+
#
|
|
464
|
+
# Once Object#method_missing has been called at least once (on any object)
|
|
465
|
+
# it starts behaving differently:
|
|
466
|
+
# * raises a NameError when called directly
|
|
467
|
+
# * raises a NameError when called indirectly
|
|
468
|
+
#
|
|
469
|
+
# There was a bug in Mock#method_missing that relied on the fact
|
|
470
|
+
# that calling Object#method_missing directly raises a NoMethodError.
|
|
471
|
+
# This example tests that the bug doesn't exist anymore.
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
# Ensures that method_missing always raises NameErrors.
|
|
475
|
+
a_method_that_doesnt_exist rescue
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
@double.should_receive(:foobar)
|
|
479
|
+
@double.foobar
|
|
480
|
+
@double.rspec_verify
|
|
481
|
+
|
|
482
|
+
expect { @double.foobar }.to_not raise_error(NameError)
|
|
483
|
+
expect { @double.foobar }.to raise_error(RSpec::Mocks::MockExpectationError)
|
|
484
|
+
end
|
|
485
|
+
|
|
486
|
+
it "temporarily replaces a method stub on a double" do
|
|
487
|
+
@double.stub(:msg).and_return(:stub_value)
|
|
488
|
+
@double.should_receive(:msg).with(:arg).and_return(:double_value)
|
|
489
|
+
expect(@double.msg(:arg)).to equal(:double_value)
|
|
490
|
+
expect(@double.msg).to equal(:stub_value)
|
|
491
|
+
expect(@double.msg).to equal(:stub_value)
|
|
492
|
+
@double.rspec_verify
|
|
493
|
+
end
|
|
494
|
+
|
|
495
|
+
it "does not require a different signature to replace a method stub" do
|
|
496
|
+
@double.stub(:msg).and_return(:stub_value)
|
|
497
|
+
@double.should_receive(:msg).and_return(:double_value)
|
|
498
|
+
expect(@double.msg(:arg)).to equal(:double_value)
|
|
499
|
+
expect(@double.msg).to equal(:stub_value)
|
|
500
|
+
expect(@double.msg).to equal(:stub_value)
|
|
501
|
+
@double.rspec_verify
|
|
502
|
+
end
|
|
503
|
+
|
|
504
|
+
it "raises an error when a previously stubbed method has a negative expectation" do
|
|
505
|
+
@double.stub(:msg).and_return(:stub_value)
|
|
506
|
+
@double.should_not_receive(:msg)
|
|
507
|
+
expect { @double.msg(:arg) }.to raise_error(RSpec::Mocks::MockExpectationError)
|
|
508
|
+
end
|
|
509
|
+
|
|
510
|
+
it "temporarily replaces a method stub on a non-double" do
|
|
511
|
+
non_double = Object.new
|
|
512
|
+
non_double.stub(:msg).and_return(:stub_value)
|
|
513
|
+
non_double.should_receive(:msg).with(:arg).and_return(:double_value)
|
|
514
|
+
expect(non_double.msg(:arg)).to equal(:double_value)
|
|
515
|
+
expect(non_double.msg).to equal(:stub_value)
|
|
516
|
+
expect(non_double.msg).to equal(:stub_value)
|
|
517
|
+
non_double.rspec_verify
|
|
518
|
+
end
|
|
519
|
+
|
|
520
|
+
it "returns the stubbed value when no new value specified" do
|
|
521
|
+
@double.stub(:msg).and_return(:stub_value)
|
|
522
|
+
@double.should_receive(:msg)
|
|
523
|
+
expect(@double.msg).to equal(:stub_value)
|
|
524
|
+
@double.rspec_verify
|
|
525
|
+
end
|
|
526
|
+
|
|
527
|
+
it "returns the stubbed value when stubbed with args and no new value specified" do
|
|
528
|
+
@double.stub(:msg).with(:arg).and_return(:stub_value)
|
|
529
|
+
@double.should_receive(:msg).with(:arg)
|
|
530
|
+
expect(@double.msg(:arg)).to equal(:stub_value)
|
|
531
|
+
@double.rspec_verify
|
|
532
|
+
end
|
|
533
|
+
|
|
534
|
+
it "does not mess with the stub's yielded values when also doubleed" do
|
|
535
|
+
@double.stub(:yield_back).and_yield(:stub_value)
|
|
536
|
+
@double.should_receive(:yield_back).and_yield(:double_value)
|
|
537
|
+
@double.yield_back{|v| expect(v).to eq :double_value }
|
|
538
|
+
@double.yield_back{|v| expect(v).to eq :stub_value }
|
|
539
|
+
@double.rspec_verify
|
|
540
|
+
end
|
|
541
|
+
|
|
542
|
+
it "can yield multiple times when told to do so" do
|
|
543
|
+
@double.stub(:foo).and_yield(:stub_value)
|
|
544
|
+
@double.should_receive(:foo).and_yield(:first_yield).and_yield(:second_yield)
|
|
545
|
+
|
|
546
|
+
expect { |b| @double.foo(&b) }.to yield_successive_args(:first_yield, :second_yield)
|
|
547
|
+
expect { |b| @double.foo(&b) }.to yield_with_args(:stub_value)
|
|
548
|
+
|
|
549
|
+
@double.rspec_verify
|
|
550
|
+
end
|
|
551
|
+
|
|
552
|
+
it "assigns stub return values" do
|
|
553
|
+
double = RSpec::Mocks::Mock.new('name', :message => :response)
|
|
554
|
+
expect(double.message).to eq :response
|
|
555
|
+
end
|
|
556
|
+
|
|
557
|
+
end
|
|
558
|
+
|
|
559
|
+
describe "a double message receiving a block" do
|
|
560
|
+
before(:each) do
|
|
561
|
+
@double = double("double")
|
|
562
|
+
@calls = 0
|
|
563
|
+
end
|
|
564
|
+
|
|
565
|
+
def add_call
|
|
566
|
+
@calls = @calls + 1
|
|
567
|
+
end
|
|
568
|
+
|
|
569
|
+
it "calls the block after #should_receive" do
|
|
570
|
+
@double.should_receive(:foo) { add_call }
|
|
571
|
+
|
|
572
|
+
@double.foo
|
|
573
|
+
|
|
574
|
+
expect(@calls).to eq 1
|
|
575
|
+
end
|
|
576
|
+
|
|
577
|
+
it "calls the block after #should_receive after a similar stub" do
|
|
578
|
+
@double.stub(:foo).and_return(:bar)
|
|
579
|
+
@double.should_receive(:foo) { add_call }
|
|
580
|
+
|
|
581
|
+
@double.foo
|
|
582
|
+
|
|
583
|
+
expect(@calls).to eq 1
|
|
584
|
+
end
|
|
585
|
+
|
|
586
|
+
it "calls the block after #once" do
|
|
587
|
+
@double.should_receive(:foo).once { add_call }
|
|
588
|
+
|
|
589
|
+
@double.foo
|
|
590
|
+
|
|
591
|
+
expect(@calls).to eq 1
|
|
592
|
+
end
|
|
593
|
+
|
|
594
|
+
it "calls the block after #twice" do
|
|
595
|
+
@double.should_receive(:foo).twice { add_call }
|
|
596
|
+
|
|
597
|
+
@double.foo
|
|
598
|
+
@double.foo
|
|
599
|
+
|
|
600
|
+
expect(@calls).to eq 2
|
|
601
|
+
end
|
|
602
|
+
|
|
603
|
+
it "calls the block after #times" do
|
|
604
|
+
@double.should_receive(:foo).exactly(10).times { add_call }
|
|
605
|
+
|
|
606
|
+
(1..10).each { @double.foo }
|
|
607
|
+
|
|
608
|
+
expect(@calls).to eq 10
|
|
609
|
+
end
|
|
610
|
+
|
|
611
|
+
it "calls the block after #any_number_of_times" do
|
|
612
|
+
@double.should_receive(:foo).any_number_of_times { add_call }
|
|
613
|
+
|
|
614
|
+
(1..7).each { @double.foo }
|
|
615
|
+
|
|
616
|
+
expect(@calls).to eq 7
|
|
617
|
+
end
|
|
618
|
+
|
|
619
|
+
it "calls the block after #ordered" do
|
|
620
|
+
@double.should_receive(:foo).ordered { add_call }
|
|
621
|
+
@double.should_receive(:bar).ordered { add_call }
|
|
622
|
+
|
|
623
|
+
@double.foo
|
|
624
|
+
@double.bar
|
|
625
|
+
|
|
626
|
+
expect(@calls).to eq 2
|
|
627
|
+
end
|
|
628
|
+
end
|
|
629
|
+
|
|
630
|
+
describe 'string representation generated by #to_s' do
|
|
631
|
+
it 'does not contain < because that might lead to invalid HTML in some situations' do
|
|
632
|
+
double = double("Dog")
|
|
633
|
+
valid_html_str = "#{double}"
|
|
634
|
+
expect(valid_html_str).not_to include('<')
|
|
635
|
+
end
|
|
636
|
+
end
|
|
637
|
+
|
|
638
|
+
describe "string representation generated by #to_str" do
|
|
639
|
+
it "looks the same as #to_s" do
|
|
640
|
+
double = double("Foo")
|
|
641
|
+
expect(double.to_str).to eq double.to_s
|
|
642
|
+
end
|
|
643
|
+
end
|
|
644
|
+
|
|
645
|
+
describe "double created with no name" do
|
|
646
|
+
it "does not use a name in a failure message" do
|
|
647
|
+
double = double()
|
|
648
|
+
expect {double.foo}.to raise_error(/Double received/)
|
|
649
|
+
end
|
|
650
|
+
|
|
651
|
+
it "does respond to initially stubbed methods" do
|
|
652
|
+
double = double(:foo => "woo", :bar => "car")
|
|
653
|
+
expect(double.foo).to eq "woo"
|
|
654
|
+
expect(double.bar).to eq "car"
|
|
655
|
+
end
|
|
656
|
+
end
|
|
657
|
+
|
|
658
|
+
describe "==" do
|
|
659
|
+
it "sends '== self' to the comparison object" do
|
|
660
|
+
first = double('first')
|
|
661
|
+
second = double('second')
|
|
662
|
+
|
|
663
|
+
first.should_receive(:==).with(second)
|
|
664
|
+
second == first
|
|
665
|
+
end
|
|
666
|
+
end
|
|
667
|
+
|
|
668
|
+
describe "with" do
|
|
669
|
+
before { @double = double('double') }
|
|
670
|
+
context "with args" do
|
|
671
|
+
context "with matching args" do
|
|
672
|
+
it "passes" do
|
|
673
|
+
@double.should_receive(:foo).with('bar')
|
|
674
|
+
@double.foo('bar')
|
|
675
|
+
end
|
|
676
|
+
end
|
|
677
|
+
|
|
678
|
+
context "with non-matching args" do
|
|
679
|
+
it "fails" do
|
|
680
|
+
@double.should_receive(:foo).with('bar')
|
|
681
|
+
expect do
|
|
682
|
+
@double.foo('baz')
|
|
683
|
+
end.to raise_error
|
|
684
|
+
@double.rspec_reset
|
|
685
|
+
end
|
|
686
|
+
end
|
|
687
|
+
|
|
688
|
+
context "with non-matching doubles" do
|
|
689
|
+
it "fails" do
|
|
690
|
+
d1 = double('1')
|
|
691
|
+
d2 = double('2')
|
|
692
|
+
@double.should_receive(:foo).with(d1)
|
|
693
|
+
expect do
|
|
694
|
+
@double.foo(d2)
|
|
695
|
+
end.to raise_error
|
|
696
|
+
@double.rspec_reset
|
|
697
|
+
end
|
|
698
|
+
end
|
|
699
|
+
|
|
700
|
+
context "with non-matching doubles as_null_object" do
|
|
701
|
+
it "fails" do
|
|
702
|
+
d1 = double('1').as_null_object
|
|
703
|
+
d2 = double('2').as_null_object
|
|
704
|
+
@double.should_receive(:foo).with(d1)
|
|
705
|
+
expect do
|
|
706
|
+
@double.foo(d2)
|
|
707
|
+
end.to raise_error
|
|
708
|
+
@double.rspec_reset
|
|
709
|
+
end
|
|
710
|
+
end
|
|
711
|
+
end
|
|
712
|
+
|
|
713
|
+
context "with a block" do
|
|
714
|
+
context "with matching args" do
|
|
715
|
+
it "returns the result of the block" do
|
|
716
|
+
@double.should_receive(:foo).with('bar') { 'baz' }
|
|
717
|
+
expect(@double.foo('bar')).to eq('baz')
|
|
718
|
+
end
|
|
719
|
+
end
|
|
720
|
+
|
|
721
|
+
context "with non-matching args" do
|
|
722
|
+
it "fails" do
|
|
723
|
+
@double.should_receive(:foo).with('bar') { 'baz' }
|
|
724
|
+
expect do
|
|
725
|
+
expect(@double.foo('wrong')).to eq('baz')
|
|
726
|
+
end.to raise_error(/received :foo with unexpected arguments/)
|
|
727
|
+
@double.rspec_reset
|
|
728
|
+
end
|
|
729
|
+
end
|
|
730
|
+
end
|
|
731
|
+
end
|
|
732
|
+
|
|
733
|
+
end
|
|
734
|
+
end
|