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
|
@@ -0,0 +1,1376 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
require 'tmpdir'
|
|
3
|
+
|
|
4
|
+
module RSpec::Core
|
|
5
|
+
|
|
6
|
+
describe Configuration do
|
|
7
|
+
|
|
8
|
+
let(:config) { Configuration.new }
|
|
9
|
+
|
|
10
|
+
describe "RSpec.configuration with a block" do
|
|
11
|
+
before { RSpec.stub(:warn_deprecation) }
|
|
12
|
+
|
|
13
|
+
it "is deprecated" do
|
|
14
|
+
RSpec.should_receive(:warn_deprecation)
|
|
15
|
+
RSpec.configuration {}
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
describe "#load_spec_files" do
|
|
20
|
+
|
|
21
|
+
it "loads files using load" do
|
|
22
|
+
config.files_to_run = ["foo.bar", "blah_spec.rb"]
|
|
23
|
+
config.should_receive(:load).twice
|
|
24
|
+
config.load_spec_files
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
it "loads each file once, even if duplicated in list" do
|
|
28
|
+
config.files_to_run = ["a_spec.rb", "a_spec.rb"]
|
|
29
|
+
config.should_receive(:load).once
|
|
30
|
+
config.load_spec_files
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
context "with rspec-1 loaded" do
|
|
34
|
+
before { stub_const("Spec::VERSION::MAJOR", 1) }
|
|
35
|
+
|
|
36
|
+
it "raises with a helpful message" do
|
|
37
|
+
expect {
|
|
38
|
+
config.load_spec_files
|
|
39
|
+
}.to raise_error(/rspec-1 has been loaded/)
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
describe "#treat_symbols_as_metadata_keys_with_true_values?" do
|
|
45
|
+
it 'defaults to false' do
|
|
46
|
+
expect(config.treat_symbols_as_metadata_keys_with_true_values?).to be_false
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
it 'can be set to true' do
|
|
50
|
+
config.treat_symbols_as_metadata_keys_with_true_values = true
|
|
51
|
+
expect(config.treat_symbols_as_metadata_keys_with_true_values?).to be_true
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
describe "#mock_framework" do
|
|
56
|
+
it "defaults to :rspec" do
|
|
57
|
+
config.should_receive(:require).with('rspec/core/mocking/with_rspec')
|
|
58
|
+
config.mock_framework
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
describe "#mock_framework="do
|
|
63
|
+
it "delegates to mock_with" do
|
|
64
|
+
config.should_receive(:mock_with).with(:rspec)
|
|
65
|
+
config.mock_framework = :rspec
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
shared_examples "a configurable framework adapter" do |m|
|
|
70
|
+
it "yields a config object if the framework_module supports it" do
|
|
71
|
+
custom_config = Struct.new(:custom_setting).new
|
|
72
|
+
mod = Module.new
|
|
73
|
+
mod.stub(:configuration => custom_config)
|
|
74
|
+
|
|
75
|
+
config.send m, mod do |mod_config|
|
|
76
|
+
mod_config.custom_setting = true
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
expect(custom_config.custom_setting).to be_true
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
it "raises if framework module doesn't support configuration" do
|
|
83
|
+
mod = Module.new
|
|
84
|
+
|
|
85
|
+
expect {
|
|
86
|
+
config.send m, mod do |mod_config|
|
|
87
|
+
end
|
|
88
|
+
}.to raise_error(/must respond to `configuration`/)
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
describe "#mock_with" do
|
|
93
|
+
before { config.stub(:require) }
|
|
94
|
+
|
|
95
|
+
it_behaves_like "a configurable framework adapter", :mock_with
|
|
96
|
+
|
|
97
|
+
[:rspec, :mocha, :rr, :flexmock].each do |framework|
|
|
98
|
+
context "with #{framework}" do
|
|
99
|
+
it "requires the adapter for #{framework}" do
|
|
100
|
+
config.should_receive(:require).with("rspec/core/mocking/with_#{framework}")
|
|
101
|
+
config.mock_with framework
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
it "allows rspec-mocks to be configured with a provided block" do
|
|
107
|
+
mod = Module.new
|
|
108
|
+
|
|
109
|
+
RSpec::Mocks.configuration.should_receive(:add_stub_and_should_receive_to).with(mod)
|
|
110
|
+
|
|
111
|
+
config.mock_with :rspec do |c|
|
|
112
|
+
c.add_stub_and_should_receive_to mod
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
context "with a module" do
|
|
117
|
+
it "sets the mock_framework_adapter to that module" do
|
|
118
|
+
mod = Module.new
|
|
119
|
+
config.mock_with mod
|
|
120
|
+
expect(config.mock_framework).to eq(mod)
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
it "uses the null adapter when set to any unknown key" do
|
|
125
|
+
config.should_receive(:require).with('rspec/core/mocking/with_absolutely_nothing')
|
|
126
|
+
config.mock_with :crazy_new_mocking_framework_ive_not_yet_heard_of
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
context 'when there are already some example groups defined' do
|
|
130
|
+
it 'raises an error since this setting must be applied before any groups are defined' do
|
|
131
|
+
RSpec.world.stub(:example_groups).and_return([double.as_null_object])
|
|
132
|
+
expect {
|
|
133
|
+
config.mock_with :mocha
|
|
134
|
+
}.to raise_error(/must be configured before any example groups are defined/)
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
it 'does not raise an error if the default `mock_with :rspec` is re-configured' do
|
|
138
|
+
config.mock_framework # called by RSpec when configuring the first example group
|
|
139
|
+
RSpec.world.stub(:example_groups).and_return([double.as_null_object])
|
|
140
|
+
config.mock_with :rspec
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
it 'does not raise an error if re-setting the same config' do
|
|
144
|
+
groups = []
|
|
145
|
+
RSpec.world.stub(:example_groups => groups)
|
|
146
|
+
config.mock_with :mocha
|
|
147
|
+
groups << double.as_null_object
|
|
148
|
+
config.mock_with :mocha
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
describe "#expectation_framework" do
|
|
154
|
+
it "defaults to :rspec" do
|
|
155
|
+
config.should_receive(:require).with('rspec/expectations')
|
|
156
|
+
config.expectation_frameworks
|
|
157
|
+
end
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
describe "#expectation_framework=" do
|
|
161
|
+
it "delegates to expect_with=" do
|
|
162
|
+
config.should_receive(:expect_with).with(:rspec)
|
|
163
|
+
config.expectation_framework = :rspec
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
describe "#expect_with" do
|
|
168
|
+
before do
|
|
169
|
+
stub_const("Test::Unit::Assertions", Module.new)
|
|
170
|
+
config.stub(:require)
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
it_behaves_like "a configurable framework adapter", :expect_with
|
|
174
|
+
|
|
175
|
+
[
|
|
176
|
+
[:rspec, 'rspec/expectations'],
|
|
177
|
+
[:stdlib, 'test/unit/assertions']
|
|
178
|
+
].each do |framework, required_file|
|
|
179
|
+
context "with #{framework}" do
|
|
180
|
+
it "requires #{required_file}" do
|
|
181
|
+
config.should_receive(:require).with(required_file)
|
|
182
|
+
config.expect_with framework
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
it "supports multiple calls" do
|
|
188
|
+
config.expect_with :rspec
|
|
189
|
+
config.expect_with :stdlib
|
|
190
|
+
expect(config.expectation_frameworks).to eq [RSpec::Matchers, Test::Unit::Assertions]
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
it "raises if block given with multiple args" do
|
|
194
|
+
expect {
|
|
195
|
+
config.expect_with :rspec, :stdlib do |mod_config|
|
|
196
|
+
end
|
|
197
|
+
}.to raise_error(/expect_with only accepts/)
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
it "raises ArgumentError if framework is not supported" do
|
|
201
|
+
expect do
|
|
202
|
+
config.expect_with :not_supported
|
|
203
|
+
end.to raise_error(ArgumentError)
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
context 'when there are already some example groups defined' do
|
|
207
|
+
it 'raises an error since this setting must be applied before any groups are defined' do
|
|
208
|
+
RSpec.world.stub(:example_groups).and_return([double.as_null_object])
|
|
209
|
+
expect {
|
|
210
|
+
config.expect_with :rspec
|
|
211
|
+
}.to raise_error(/must be configured before any example groups are defined/)
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
it 'does not raise an error if the default `expect_with :rspec` is re-configured' do
|
|
215
|
+
config.expectation_frameworks # called by RSpec when configuring the first example group
|
|
216
|
+
RSpec.world.stub(:example_groups).and_return([double.as_null_object])
|
|
217
|
+
config.expect_with :rspec
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
it 'does not raise an error if re-setting the same config' do
|
|
221
|
+
groups = []
|
|
222
|
+
RSpec.world.stub(:example_groups => groups)
|
|
223
|
+
config.expect_with :stdlib
|
|
224
|
+
groups << double.as_null_object
|
|
225
|
+
config.expect_with :stdlib
|
|
226
|
+
end
|
|
227
|
+
end
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
describe "#expecting_with_rspec?" do
|
|
231
|
+
before do
|
|
232
|
+
stub_const("Test::Unit::Assertions", Module.new)
|
|
233
|
+
config.stub(:require)
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
it "returns false by default" do
|
|
237
|
+
expect(config).not_to be_expecting_with_rspec
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
it "returns true when `expect_with :rspec` has been configured" do
|
|
241
|
+
config.expect_with :rspec
|
|
242
|
+
expect(config).to be_expecting_with_rspec
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
it "returns true when `expect_with :rspec, :stdlib` has been configured" do
|
|
246
|
+
config.expect_with :rspec, :stdlib
|
|
247
|
+
expect(config).to be_expecting_with_rspec
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
it "returns true when `expect_with :stdlib, :rspec` has been configured" do
|
|
251
|
+
config.expect_with :stdlib, :rspec
|
|
252
|
+
expect(config).to be_expecting_with_rspec
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
it "returns false when `expect_with :stdlib` has been configured" do
|
|
256
|
+
config.expect_with :stdlib
|
|
257
|
+
expect(config).not_to be_expecting_with_rspec
|
|
258
|
+
end
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
describe "#files_to_run" do
|
|
262
|
+
it "loads files not following pattern if named explicitly" do
|
|
263
|
+
config.files_or_directories_to_run = "spec/rspec/core/resources/a_bar.rb"
|
|
264
|
+
expect(config.files_to_run).to eq([ "spec/rspec/core/resources/a_bar.rb"])
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
it "prevents repetition of dir when start of the pattern" do
|
|
268
|
+
config.pattern = "spec/**/a_spec.rb"
|
|
269
|
+
config.files_or_directories_to_run = "spec"
|
|
270
|
+
expect(config.files_to_run).to eq(["spec/rspec/core/resources/a_spec.rb"])
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
it "does not prevent repetition of dir when later of the pattern" do
|
|
274
|
+
config.pattern = "rspec/**/a_spec.rb"
|
|
275
|
+
config.files_or_directories_to_run = "spec"
|
|
276
|
+
expect(config.files_to_run).to eq(["spec/rspec/core/resources/a_spec.rb"])
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
context "with <path>:<line_number>" do
|
|
280
|
+
it "overrides inclusion filters set on config" do
|
|
281
|
+
config.filter_run_including :foo => :bar
|
|
282
|
+
config.files_or_directories_to_run = "path/to/file.rb:37"
|
|
283
|
+
expect(config.inclusion_filter.size).to eq(1)
|
|
284
|
+
expect(config.inclusion_filter[:locations].keys.first).to match(/path\/to\/file\.rb$/)
|
|
285
|
+
expect(config.inclusion_filter[:locations].values.first).to eq([37])
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
it "overrides inclusion filters set before config" do
|
|
289
|
+
config.force(:inclusion_filter => {:foo => :bar})
|
|
290
|
+
config.files_or_directories_to_run = "path/to/file.rb:37"
|
|
291
|
+
expect(config.inclusion_filter.size).to eq(1)
|
|
292
|
+
expect(config.inclusion_filter[:locations].keys.first).to match(/path\/to\/file\.rb$/)
|
|
293
|
+
expect(config.inclusion_filter[:locations].values.first).to eq([37])
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
it "clears exclusion filters set on config" do
|
|
297
|
+
config.exclusion_filter = { :foo => :bar }
|
|
298
|
+
config.files_or_directories_to_run = "path/to/file.rb:37"
|
|
299
|
+
expect(config.exclusion_filter).to be_empty,
|
|
300
|
+
"expected exclusion filter to be empty:\n#{config.exclusion_filter}"
|
|
301
|
+
end
|
|
302
|
+
|
|
303
|
+
it "clears exclusion filters set before config" do
|
|
304
|
+
config.force(:exclusion_filter => { :foo => :bar })
|
|
305
|
+
config.files_or_directories_to_run = "path/to/file.rb:37"
|
|
306
|
+
expect(config.exclusion_filter).to be_empty,
|
|
307
|
+
"expected exclusion filter to be empty:\n#{config.exclusion_filter}"
|
|
308
|
+
end
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
context "with default pattern" do
|
|
312
|
+
it "loads files named _spec.rb" do
|
|
313
|
+
config.files_or_directories_to_run = "spec/rspec/core/resources"
|
|
314
|
+
expect(config.files_to_run).to eq([ "spec/rspec/core/resources/a_spec.rb"])
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
it "loads files in Windows", :if => RSpec.windows_os? do
|
|
318
|
+
config.files_or_directories_to_run = "C:\\path\\to\\project\\spec\\sub\\foo_spec.rb"
|
|
319
|
+
expect(config.files_to_run).to eq([ "C:/path/to/project/spec/sub/foo_spec.rb"])
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
it "loads files in Windows when directory is specified", :if => RSpec.windows_os? do
|
|
323
|
+
config.files_or_directories_to_run = "spec\\rspec\\core\\resources"
|
|
324
|
+
expect(config.files_to_run).to eq([ "spec/rspec/core/resources/a_spec.rb"])
|
|
325
|
+
end
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
context "with default default_path" do
|
|
329
|
+
it "loads files in the default path when run by rspec" do
|
|
330
|
+
config.stub(:command) { 'rspec' }
|
|
331
|
+
config.files_or_directories_to_run = []
|
|
332
|
+
expect(config.files_to_run).not_to be_empty
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
it "loads files in the default path when run with DRB (e.g., spork)" do
|
|
336
|
+
config.stub(:command) { 'spork' }
|
|
337
|
+
RSpec::Core::Runner.stub(:running_in_drb?) { true }
|
|
338
|
+
config.files_or_directories_to_run = []
|
|
339
|
+
expect(config.files_to_run).not_to be_empty
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
it "does not load files in the default path when run by ruby" do
|
|
343
|
+
config.stub(:command) { 'ruby' }
|
|
344
|
+
config.files_or_directories_to_run = []
|
|
345
|
+
expect(config.files_to_run).to be_empty
|
|
346
|
+
end
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
def specify_consistent_ordering_of_files_to_run
|
|
350
|
+
File.stub(:directory?).with('a') { true }
|
|
351
|
+
|
|
352
|
+
orderings = [
|
|
353
|
+
%w[ a/1.rb a/2.rb a/3.rb ],
|
|
354
|
+
%w[ a/2.rb a/1.rb a/3.rb ],
|
|
355
|
+
%w[ a/3.rb a/2.rb a/1.rb ]
|
|
356
|
+
].map do |files|
|
|
357
|
+
Dir.should_receive(:[]).with(/^a/) { files }
|
|
358
|
+
yield
|
|
359
|
+
config.files_to_run
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
expect(orderings.uniq.size).to eq(1)
|
|
363
|
+
end
|
|
364
|
+
|
|
365
|
+
context 'when the given directories match the pattern' do
|
|
366
|
+
it 'orders the files in a consistent ordering, regardless of the underlying OS ordering' do
|
|
367
|
+
specify_consistent_ordering_of_files_to_run do
|
|
368
|
+
config.pattern = 'a/*.rb'
|
|
369
|
+
config.files_or_directories_to_run = 'a'
|
|
370
|
+
end
|
|
371
|
+
end
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
context 'when the pattern is given relative to the given directories' do
|
|
375
|
+
it 'orders the files in a consistent ordering, regardless of the underlying OS ordering' do
|
|
376
|
+
specify_consistent_ordering_of_files_to_run do
|
|
377
|
+
config.pattern = '*.rb'
|
|
378
|
+
config.files_or_directories_to_run = 'a'
|
|
379
|
+
end
|
|
380
|
+
end
|
|
381
|
+
end
|
|
382
|
+
|
|
383
|
+
context 'when given multiple file paths' do
|
|
384
|
+
it 'orders the files in a consistent ordering, regardless of the given order' do
|
|
385
|
+
File.stub(:directory?) { false } # fake it into thinking these a full file paths
|
|
386
|
+
|
|
387
|
+
files = ['a/b/c_spec.rb', 'c/b/a_spec.rb']
|
|
388
|
+
config.files_or_directories_to_run = *files
|
|
389
|
+
ordering_1 = config.files_to_run
|
|
390
|
+
|
|
391
|
+
config.files_or_directories_to_run = *(files.reverse)
|
|
392
|
+
ordering_2 = config.files_to_run
|
|
393
|
+
|
|
394
|
+
expect(ordering_1).to eq(ordering_2)
|
|
395
|
+
end
|
|
396
|
+
end
|
|
397
|
+
end
|
|
398
|
+
|
|
399
|
+
%w[pattern= filename_pattern=].each do |setter|
|
|
400
|
+
describe "##{setter}" do
|
|
401
|
+
context "with single pattern" do
|
|
402
|
+
before { config.send(setter, "**/*_foo.rb") }
|
|
403
|
+
it "loads files following pattern" do
|
|
404
|
+
file = File.expand_path(File.dirname(__FILE__) + "/resources/a_foo.rb")
|
|
405
|
+
config.files_or_directories_to_run = file
|
|
406
|
+
expect(config.files_to_run).to include(file)
|
|
407
|
+
end
|
|
408
|
+
|
|
409
|
+
it "loads files in directories following pattern" do
|
|
410
|
+
dir = File.expand_path(File.dirname(__FILE__) + "/resources")
|
|
411
|
+
config.files_or_directories_to_run = dir
|
|
412
|
+
expect(config.files_to_run).to include("#{dir}/a_foo.rb")
|
|
413
|
+
end
|
|
414
|
+
|
|
415
|
+
it "does not load files in directories not following pattern" do
|
|
416
|
+
dir = File.expand_path(File.dirname(__FILE__) + "/resources")
|
|
417
|
+
config.files_or_directories_to_run = dir
|
|
418
|
+
expect(config.files_to_run).not_to include("#{dir}/a_bar.rb")
|
|
419
|
+
end
|
|
420
|
+
end
|
|
421
|
+
|
|
422
|
+
context "with multiple patterns" do
|
|
423
|
+
it "supports comma separated values" do
|
|
424
|
+
config.send(setter, "**/*_foo.rb,**/*_bar.rb")
|
|
425
|
+
dir = File.expand_path(File.dirname(__FILE__) + "/resources")
|
|
426
|
+
config.files_or_directories_to_run = dir
|
|
427
|
+
expect(config.files_to_run).to include("#{dir}/a_foo.rb")
|
|
428
|
+
expect(config.files_to_run).to include("#{dir}/a_bar.rb")
|
|
429
|
+
end
|
|
430
|
+
|
|
431
|
+
it "supports comma separated values with spaces" do
|
|
432
|
+
config.send(setter, "**/*_foo.rb, **/*_bar.rb")
|
|
433
|
+
dir = File.expand_path(File.dirname(__FILE__) + "/resources")
|
|
434
|
+
config.files_or_directories_to_run = dir
|
|
435
|
+
expect(config.files_to_run).to include("#{dir}/a_foo.rb")
|
|
436
|
+
expect(config.files_to_run).to include("#{dir}/a_bar.rb")
|
|
437
|
+
end
|
|
438
|
+
end
|
|
439
|
+
end
|
|
440
|
+
end
|
|
441
|
+
|
|
442
|
+
describe "path with line number" do
|
|
443
|
+
it "assigns the line number as a location filter" do
|
|
444
|
+
config.files_or_directories_to_run = "path/to/a_spec.rb:37"
|
|
445
|
+
expect(config.filter).to eq({:locations => {File.expand_path("path/to/a_spec.rb") => [37]}})
|
|
446
|
+
end
|
|
447
|
+
end
|
|
448
|
+
|
|
449
|
+
context "with full_description" do
|
|
450
|
+
it "overrides filters" do
|
|
451
|
+
config.filter_run :focused => true
|
|
452
|
+
config.full_description = "foo"
|
|
453
|
+
expect(config.filter).not_to have_key(:focused)
|
|
454
|
+
end
|
|
455
|
+
end
|
|
456
|
+
|
|
457
|
+
context "with line number" do
|
|
458
|
+
|
|
459
|
+
it "assigns the file and line number as a location filter" do
|
|
460
|
+
config.files_or_directories_to_run = "path/to/a_spec.rb:37"
|
|
461
|
+
expect(config.filter).to eq({:locations => {File.expand_path("path/to/a_spec.rb") => [37]}})
|
|
462
|
+
end
|
|
463
|
+
|
|
464
|
+
it "assigns multiple files with line numbers as location filters" do
|
|
465
|
+
config.files_or_directories_to_run = "path/to/a_spec.rb:37", "other_spec.rb:44"
|
|
466
|
+
expect(config.filter).to eq({:locations => {File.expand_path("path/to/a_spec.rb") => [37],
|
|
467
|
+
File.expand_path("other_spec.rb") => [44]}})
|
|
468
|
+
end
|
|
469
|
+
|
|
470
|
+
it "assigns files with multiple line numbers as location filters" do
|
|
471
|
+
config.files_or_directories_to_run = "path/to/a_spec.rb:37", "path/to/a_spec.rb:44"
|
|
472
|
+
expect(config.filter).to eq({:locations => {File.expand_path("path/to/a_spec.rb") => [37, 44]}})
|
|
473
|
+
end
|
|
474
|
+
end
|
|
475
|
+
|
|
476
|
+
context "with multiple line numbers" do
|
|
477
|
+
it "assigns the file and line numbers as a location filter" do
|
|
478
|
+
config.files_or_directories_to_run = "path/to/a_spec.rb:1:3:5:7"
|
|
479
|
+
expect(config.filter).to eq({:locations => {File.expand_path("path/to/a_spec.rb") => [1,3,5,7]}})
|
|
480
|
+
end
|
|
481
|
+
end
|
|
482
|
+
|
|
483
|
+
it "assigns the example name as the filter on description" do
|
|
484
|
+
config.full_description = "foo"
|
|
485
|
+
expect(config.filter).to eq({:full_description => /foo/})
|
|
486
|
+
end
|
|
487
|
+
|
|
488
|
+
it "assigns the example names as the filter on description if description is an array" do
|
|
489
|
+
config.full_description = [ "foo", "bar" ]
|
|
490
|
+
expect(config.filter).to eq({:full_description => Regexp.union(/foo/, /bar/)})
|
|
491
|
+
end
|
|
492
|
+
|
|
493
|
+
describe "#default_path" do
|
|
494
|
+
it 'defaults to "spec"' do
|
|
495
|
+
expect(config.default_path).to eq('spec')
|
|
496
|
+
end
|
|
497
|
+
end
|
|
498
|
+
|
|
499
|
+
describe "#include" do
|
|
500
|
+
|
|
501
|
+
module InstanceLevelMethods
|
|
502
|
+
def you_call_this_a_blt?
|
|
503
|
+
"egad man, where's the mayo?!?!?"
|
|
504
|
+
end
|
|
505
|
+
end
|
|
506
|
+
|
|
507
|
+
it_behaves_like "metadata hash builder" do
|
|
508
|
+
def metadata_hash(*args)
|
|
509
|
+
config.include(InstanceLevelMethods, *args)
|
|
510
|
+
config.include_or_extend_modules.last.last
|
|
511
|
+
end
|
|
512
|
+
end
|
|
513
|
+
|
|
514
|
+
context "with no filter" do
|
|
515
|
+
it "includes the given module into each example group" do
|
|
516
|
+
RSpec.configure do |c|
|
|
517
|
+
c.include(InstanceLevelMethods)
|
|
518
|
+
end
|
|
519
|
+
|
|
520
|
+
group = ExampleGroup.describe('does like, stuff and junk', :magic_key => :include) { }
|
|
521
|
+
expect(group).not_to respond_to(:you_call_this_a_blt?)
|
|
522
|
+
expect(group.new.you_call_this_a_blt?).to eq("egad man, where's the mayo?!?!?")
|
|
523
|
+
end
|
|
524
|
+
end
|
|
525
|
+
|
|
526
|
+
context "with a filter" do
|
|
527
|
+
it "includes the given module into each matching example group" do
|
|
528
|
+
RSpec.configure do |c|
|
|
529
|
+
c.include(InstanceLevelMethods, :magic_key => :include)
|
|
530
|
+
end
|
|
531
|
+
|
|
532
|
+
group = ExampleGroup.describe('does like, stuff and junk', :magic_key => :include) { }
|
|
533
|
+
expect(group).not_to respond_to(:you_call_this_a_blt?)
|
|
534
|
+
expect(group.new.you_call_this_a_blt?).to eq("egad man, where's the mayo?!?!?")
|
|
535
|
+
end
|
|
536
|
+
end
|
|
537
|
+
|
|
538
|
+
end
|
|
539
|
+
|
|
540
|
+
describe "#extend" do
|
|
541
|
+
|
|
542
|
+
module ThatThingISentYou
|
|
543
|
+
def that_thing
|
|
544
|
+
end
|
|
545
|
+
end
|
|
546
|
+
|
|
547
|
+
it_behaves_like "metadata hash builder" do
|
|
548
|
+
def metadata_hash(*args)
|
|
549
|
+
config.extend(ThatThingISentYou, *args)
|
|
550
|
+
config.include_or_extend_modules.last.last
|
|
551
|
+
end
|
|
552
|
+
end
|
|
553
|
+
|
|
554
|
+
it "extends the given module into each matching example group" do
|
|
555
|
+
RSpec.configure do |c|
|
|
556
|
+
c.extend(ThatThingISentYou, :magic_key => :extend)
|
|
557
|
+
end
|
|
558
|
+
|
|
559
|
+
group = ExampleGroup.describe(ThatThingISentYou, :magic_key => :extend) { }
|
|
560
|
+
expect(group).to respond_to(:that_thing)
|
|
561
|
+
end
|
|
562
|
+
|
|
563
|
+
end
|
|
564
|
+
|
|
565
|
+
describe "#run_all_when_everything_filtered?" do
|
|
566
|
+
|
|
567
|
+
it "defaults to false" do
|
|
568
|
+
expect(config.run_all_when_everything_filtered?).to be_false
|
|
569
|
+
end
|
|
570
|
+
|
|
571
|
+
it "can be queried with question method" do
|
|
572
|
+
config.run_all_when_everything_filtered = true
|
|
573
|
+
expect(config.run_all_when_everything_filtered?).to be_true
|
|
574
|
+
end
|
|
575
|
+
end
|
|
576
|
+
|
|
577
|
+
%w[color color_enabled].each do |color_option|
|
|
578
|
+
describe "##{color_option}=" do
|
|
579
|
+
context "given true" do
|
|
580
|
+
before { config.send "#{color_option}=", true }
|
|
581
|
+
|
|
582
|
+
context "with config.tty? and output.tty?" do
|
|
583
|
+
it "does not set color_enabled" do
|
|
584
|
+
output = StringIO.new
|
|
585
|
+
config.output_stream = output
|
|
586
|
+
|
|
587
|
+
config.tty = true
|
|
588
|
+
config.output_stream.stub :tty? => true
|
|
589
|
+
|
|
590
|
+
expect(config.send(color_option)).to be_true
|
|
591
|
+
expect(config.send(color_option, output)).to be_true
|
|
592
|
+
end
|
|
593
|
+
end
|
|
594
|
+
|
|
595
|
+
context "with config.tty? and !output.tty?" do
|
|
596
|
+
it "sets color_enabled" do
|
|
597
|
+
output = StringIO.new
|
|
598
|
+
config.output_stream = output
|
|
599
|
+
|
|
600
|
+
config.tty = true
|
|
601
|
+
config.output_stream.stub :tty? => false
|
|
602
|
+
|
|
603
|
+
expect(config.send(color_option)).to be_true
|
|
604
|
+
expect(config.send(color_option, output)).to be_true
|
|
605
|
+
end
|
|
606
|
+
end
|
|
607
|
+
|
|
608
|
+
context "with config.tty? and !output.tty?" do
|
|
609
|
+
it "does not set color_enabled" do
|
|
610
|
+
output = StringIO.new
|
|
611
|
+
config.output_stream = output
|
|
612
|
+
|
|
613
|
+
config.tty = false
|
|
614
|
+
config.output_stream.stub :tty? => true
|
|
615
|
+
|
|
616
|
+
expect(config.send(color_option)).to be_true
|
|
617
|
+
expect(config.send(color_option, output)).to be_true
|
|
618
|
+
end
|
|
619
|
+
end
|
|
620
|
+
|
|
621
|
+
context "with !config.tty? and !output.tty?" do
|
|
622
|
+
it "does not set color_enabled" do
|
|
623
|
+
output = StringIO.new
|
|
624
|
+
config.output_stream = output
|
|
625
|
+
|
|
626
|
+
config.tty = false
|
|
627
|
+
config.output_stream.stub :tty? => false
|
|
628
|
+
|
|
629
|
+
expect(config.send(color_option)).to be_false
|
|
630
|
+
expect(config.send(color_option, output)).to be_false
|
|
631
|
+
end
|
|
632
|
+
end
|
|
633
|
+
|
|
634
|
+
context "on windows" do
|
|
635
|
+
before do
|
|
636
|
+
@original_host = RbConfig::CONFIG['host_os']
|
|
637
|
+
RbConfig::CONFIG['host_os'] = 'mingw'
|
|
638
|
+
config.stub(:require)
|
|
639
|
+
config.stub(:warn)
|
|
640
|
+
end
|
|
641
|
+
|
|
642
|
+
after do
|
|
643
|
+
RbConfig::CONFIG['host_os'] = @original_host
|
|
644
|
+
end
|
|
645
|
+
|
|
646
|
+
context "with ANSICON available" do
|
|
647
|
+
around(:each) { |e| with_env_vars('ANSICON' => 'ANSICON', &e) }
|
|
648
|
+
|
|
649
|
+
it "enables colors" do
|
|
650
|
+
config.output_stream = StringIO.new
|
|
651
|
+
config.output_stream.stub :tty? => true
|
|
652
|
+
config.send "#{color_option}=", true
|
|
653
|
+
expect(config.send(color_option)).to be_true
|
|
654
|
+
end
|
|
655
|
+
|
|
656
|
+
it "leaves output stream intact" do
|
|
657
|
+
config.output_stream = $stdout
|
|
658
|
+
config.stub(:require) do |what|
|
|
659
|
+
config.output_stream = 'foo' if what =~ /Win32/
|
|
660
|
+
end
|
|
661
|
+
config.send "#{color_option}=", true
|
|
662
|
+
expect(config.output_stream).to eq($stdout)
|
|
663
|
+
end
|
|
664
|
+
end
|
|
665
|
+
|
|
666
|
+
context "with ANSICON NOT available" do
|
|
667
|
+
it "warns to install ANSICON" do
|
|
668
|
+
config.stub(:require) { raise LoadError }
|
|
669
|
+
config.should_receive(:warn).
|
|
670
|
+
with(/You must use ANSICON/)
|
|
671
|
+
config.send "#{color_option}=", true
|
|
672
|
+
end
|
|
673
|
+
|
|
674
|
+
it "sets color_enabled to false" do
|
|
675
|
+
config.stub(:require) { raise LoadError }
|
|
676
|
+
config.send "#{color_option}=", true
|
|
677
|
+
config.color_enabled = true
|
|
678
|
+
expect(config.send(color_option)).to be_false
|
|
679
|
+
end
|
|
680
|
+
end
|
|
681
|
+
end
|
|
682
|
+
end
|
|
683
|
+
end
|
|
684
|
+
|
|
685
|
+
it "prefers incoming cli_args" do
|
|
686
|
+
config.output_stream = StringIO.new
|
|
687
|
+
config.output_stream.stub :tty? => true
|
|
688
|
+
config.force :color => true
|
|
689
|
+
config.color = false
|
|
690
|
+
expect(config.color).to be_true
|
|
691
|
+
end
|
|
692
|
+
end
|
|
693
|
+
|
|
694
|
+
describe '#formatter=' do
|
|
695
|
+
it "delegates to add_formatter (better API for user-facing configuration)" do
|
|
696
|
+
config.should_receive(:add_formatter).with('these','options')
|
|
697
|
+
config.add_formatter('these','options')
|
|
698
|
+
end
|
|
699
|
+
end
|
|
700
|
+
|
|
701
|
+
describe "#add_formatter" do
|
|
702
|
+
|
|
703
|
+
it "adds to the list of formatters" do
|
|
704
|
+
config.add_formatter :documentation
|
|
705
|
+
expect(config.formatters.first).to be_an_instance_of(Formatters::DocumentationFormatter)
|
|
706
|
+
end
|
|
707
|
+
|
|
708
|
+
it "finds a formatter by name (w/ Symbol)" do
|
|
709
|
+
config.add_formatter :documentation
|
|
710
|
+
expect(config.formatters.first).to be_an_instance_of(Formatters::DocumentationFormatter)
|
|
711
|
+
end
|
|
712
|
+
|
|
713
|
+
it "finds a formatter by name (w/ String)" do
|
|
714
|
+
config.add_formatter 'documentation'
|
|
715
|
+
expect(config.formatters.first).to be_an_instance_of(Formatters::DocumentationFormatter)
|
|
716
|
+
end
|
|
717
|
+
|
|
718
|
+
it "finds a formatter by class" do
|
|
719
|
+
formatter_class = Class.new(Formatters::BaseTextFormatter)
|
|
720
|
+
config.add_formatter formatter_class
|
|
721
|
+
expect(config.formatters.first).to be_an_instance_of(formatter_class)
|
|
722
|
+
end
|
|
723
|
+
|
|
724
|
+
it "finds a formatter by class name" do
|
|
725
|
+
stub_const("CustomFormatter", Class.new(Formatters::BaseFormatter))
|
|
726
|
+
config.add_formatter "CustomFormatter"
|
|
727
|
+
expect(config.formatters.first).to be_an_instance_of(CustomFormatter)
|
|
728
|
+
end
|
|
729
|
+
|
|
730
|
+
it "finds a formatter by class fully qualified name" do
|
|
731
|
+
stub_const("RSpec::CustomFormatter", Class.new(Formatters::BaseFormatter))
|
|
732
|
+
config.add_formatter "RSpec::CustomFormatter"
|
|
733
|
+
expect(config.formatters.first).to be_an_instance_of(RSpec::CustomFormatter)
|
|
734
|
+
end
|
|
735
|
+
|
|
736
|
+
it "requires a formatter file based on its fully qualified name" do
|
|
737
|
+
config.should_receive(:require).with('rspec/custom_formatter') do
|
|
738
|
+
stub_const("RSpec::CustomFormatter", Class.new(Formatters::BaseFormatter))
|
|
739
|
+
end
|
|
740
|
+
config.add_formatter "RSpec::CustomFormatter"
|
|
741
|
+
expect(config.formatters.first).to be_an_instance_of(RSpec::CustomFormatter)
|
|
742
|
+
end
|
|
743
|
+
|
|
744
|
+
it "raises NameError if class is unresolvable" do
|
|
745
|
+
config.should_receive(:require).with('rspec/custom_formatter3')
|
|
746
|
+
expect(lambda { config.add_formatter "RSpec::CustomFormatter3" }).to raise_error(NameError)
|
|
747
|
+
end
|
|
748
|
+
|
|
749
|
+
it "raises ArgumentError if formatter is unknown" do
|
|
750
|
+
expect(lambda { config.add_formatter :progresss }).to raise_error(ArgumentError)
|
|
751
|
+
end
|
|
752
|
+
|
|
753
|
+
context "with a 2nd arg defining the output" do
|
|
754
|
+
it "creates a file at that path and sets it as the output" do
|
|
755
|
+
path = File.join(Dir.tmpdir, 'output.txt')
|
|
756
|
+
config.add_formatter('doc', path)
|
|
757
|
+
expect(config.formatters.first.output).to be_a(File)
|
|
758
|
+
expect(config.formatters.first.output.path).to eq(path)
|
|
759
|
+
end
|
|
760
|
+
end
|
|
761
|
+
end
|
|
762
|
+
|
|
763
|
+
describe "#filter_run_including" do
|
|
764
|
+
it_behaves_like "metadata hash builder" do
|
|
765
|
+
def metadata_hash(*args)
|
|
766
|
+
config.filter_run_including(*args)
|
|
767
|
+
config.inclusion_filter
|
|
768
|
+
end
|
|
769
|
+
end
|
|
770
|
+
|
|
771
|
+
it "sets the filter with a hash" do
|
|
772
|
+
config.filter_run_including :foo => true
|
|
773
|
+
expect(config.inclusion_filter[:foo]).to be(true)
|
|
774
|
+
end
|
|
775
|
+
|
|
776
|
+
it "sets the filter with a symbol" do
|
|
777
|
+
RSpec.configuration.stub(:treat_symbols_as_metadata_keys_with_true_values? => true)
|
|
778
|
+
config.filter_run_including :foo
|
|
779
|
+
expect(config.inclusion_filter[:foo]).to be(true)
|
|
780
|
+
end
|
|
781
|
+
|
|
782
|
+
it "merges with existing filters" do
|
|
783
|
+
config.filter_run_including :foo => true
|
|
784
|
+
config.filter_run_including :bar => false
|
|
785
|
+
|
|
786
|
+
expect(config.inclusion_filter[:foo]).to be(true)
|
|
787
|
+
expect(config.inclusion_filter[:bar]).to be(false)
|
|
788
|
+
end
|
|
789
|
+
end
|
|
790
|
+
|
|
791
|
+
describe "#filter_run_excluding" do
|
|
792
|
+
it_behaves_like "metadata hash builder" do
|
|
793
|
+
def metadata_hash(*args)
|
|
794
|
+
config.filter_run_excluding(*args)
|
|
795
|
+
config.exclusion_filter
|
|
796
|
+
end
|
|
797
|
+
end
|
|
798
|
+
|
|
799
|
+
it "sets the filter" do
|
|
800
|
+
config.filter_run_excluding :foo => true
|
|
801
|
+
expect(config.exclusion_filter[:foo]).to be(true)
|
|
802
|
+
end
|
|
803
|
+
|
|
804
|
+
it "sets the filter using a symbol" do
|
|
805
|
+
RSpec.configuration.stub(:treat_symbols_as_metadata_keys_with_true_values? => true)
|
|
806
|
+
config.filter_run_excluding :foo
|
|
807
|
+
expect(config.exclusion_filter[:foo]).to be(true)
|
|
808
|
+
end
|
|
809
|
+
|
|
810
|
+
it "merges with existing filters" do
|
|
811
|
+
config.filter_run_excluding :foo => true
|
|
812
|
+
config.filter_run_excluding :bar => false
|
|
813
|
+
|
|
814
|
+
expect(config.exclusion_filter[:foo]).to be(true)
|
|
815
|
+
expect(config.exclusion_filter[:bar]).to be(false)
|
|
816
|
+
end
|
|
817
|
+
end
|
|
818
|
+
|
|
819
|
+
describe "#inclusion_filter" do
|
|
820
|
+
it "returns {} even if set to nil" do
|
|
821
|
+
config.inclusion_filter = nil
|
|
822
|
+
expect(config.inclusion_filter).to eq({})
|
|
823
|
+
end
|
|
824
|
+
end
|
|
825
|
+
|
|
826
|
+
describe "#inclusion_filter=" do
|
|
827
|
+
it "treats symbols as hash keys with true values when told to" do
|
|
828
|
+
RSpec.configuration.stub(:treat_symbols_as_metadata_keys_with_true_values? => true)
|
|
829
|
+
config.inclusion_filter = :foo
|
|
830
|
+
expect(config.inclusion_filter).to eq({:foo => true})
|
|
831
|
+
end
|
|
832
|
+
|
|
833
|
+
it "overrides any inclusion filters set on the command line or in configuration files" do
|
|
834
|
+
config.force(:inclusion_filter => { :foo => :bar })
|
|
835
|
+
config.inclusion_filter = {:want => :this}
|
|
836
|
+
expect(config.inclusion_filter).to eq({:want => :this})
|
|
837
|
+
end
|
|
838
|
+
end
|
|
839
|
+
|
|
840
|
+
describe "#exclusion_filter" do
|
|
841
|
+
it "returns {} even if set to nil" do
|
|
842
|
+
config.exclusion_filter = nil
|
|
843
|
+
expect(config.exclusion_filter).to eq({})
|
|
844
|
+
end
|
|
845
|
+
|
|
846
|
+
describe "the default :if filter" do
|
|
847
|
+
it "does not exclude a spec with { :if => true } metadata" do
|
|
848
|
+
expect(config.exclusion_filter[:if].call(true)).to be_false
|
|
849
|
+
end
|
|
850
|
+
|
|
851
|
+
it "excludes a spec with { :if => false } metadata" do
|
|
852
|
+
expect(config.exclusion_filter[:if].call(false)).to be_true
|
|
853
|
+
end
|
|
854
|
+
|
|
855
|
+
it "excludes a spec with { :if => nil } metadata" do
|
|
856
|
+
expect(config.exclusion_filter[:if].call(nil)).to be_true
|
|
857
|
+
end
|
|
858
|
+
end
|
|
859
|
+
|
|
860
|
+
describe "the default :unless filter" do
|
|
861
|
+
it "excludes a spec with { :unless => true } metadata" do
|
|
862
|
+
expect(config.exclusion_filter[:unless].call(true)).to be_true
|
|
863
|
+
end
|
|
864
|
+
|
|
865
|
+
it "does not exclude a spec with { :unless => false } metadata" do
|
|
866
|
+
expect(config.exclusion_filter[:unless].call(false)).to be_false
|
|
867
|
+
end
|
|
868
|
+
|
|
869
|
+
it "does not exclude a spec with { :unless => nil } metadata" do
|
|
870
|
+
expect(config.exclusion_filter[:unless].call(nil)).to be_false
|
|
871
|
+
end
|
|
872
|
+
end
|
|
873
|
+
end
|
|
874
|
+
|
|
875
|
+
describe "#exclusion_filter=" do
|
|
876
|
+
it "treats symbols as hash keys with true values when told to" do
|
|
877
|
+
RSpec.configuration.stub(:treat_symbols_as_metadata_keys_with_true_values? => true)
|
|
878
|
+
config.exclusion_filter = :foo
|
|
879
|
+
expect(config.exclusion_filter).to eq({:foo => true})
|
|
880
|
+
end
|
|
881
|
+
|
|
882
|
+
it "overrides any exclusion filters set on the command line or in configuration files" do
|
|
883
|
+
config.force(:exclusion_filter => { :foo => :bar })
|
|
884
|
+
config.exclusion_filter = {:want => :this}
|
|
885
|
+
expect(config.exclusion_filter).to eq({:want => :this})
|
|
886
|
+
end
|
|
887
|
+
end
|
|
888
|
+
|
|
889
|
+
describe "line_numbers=" do
|
|
890
|
+
before { config.filter_manager.stub(:warn) }
|
|
891
|
+
|
|
892
|
+
it "sets the line numbers" do
|
|
893
|
+
config.line_numbers = ['37']
|
|
894
|
+
expect(config.filter).to eq({:line_numbers => [37]})
|
|
895
|
+
end
|
|
896
|
+
|
|
897
|
+
it "overrides filters" do
|
|
898
|
+
config.filter_run :focused => true
|
|
899
|
+
config.line_numbers = ['37']
|
|
900
|
+
expect(config.filter).to eq({:line_numbers => [37]})
|
|
901
|
+
end
|
|
902
|
+
|
|
903
|
+
it "prevents subsequent filters" do
|
|
904
|
+
config.line_numbers = ['37']
|
|
905
|
+
config.filter_run :focused => true
|
|
906
|
+
expect(config.filter).to eq({:line_numbers => [37]})
|
|
907
|
+
end
|
|
908
|
+
end
|
|
909
|
+
|
|
910
|
+
describe "#full_backtrace=" do
|
|
911
|
+
context "given true" do
|
|
912
|
+
it "clears the backtrace clean patterns" do
|
|
913
|
+
config.full_backtrace = true
|
|
914
|
+
expect(config.backtrace_clean_patterns).to eq([])
|
|
915
|
+
end
|
|
916
|
+
end
|
|
917
|
+
|
|
918
|
+
context "given false" do
|
|
919
|
+
it "restores backtrace clean patterns" do
|
|
920
|
+
config.full_backtrace = false
|
|
921
|
+
expect(config.backtrace_clean_patterns).to eq(RSpec::Core::Configuration::DEFAULT_BACKTRACE_PATTERNS)
|
|
922
|
+
end
|
|
923
|
+
end
|
|
924
|
+
|
|
925
|
+
it "doesn't impact other instances of config" do
|
|
926
|
+
config_1 = Configuration.new
|
|
927
|
+
config_2 = Configuration.new
|
|
928
|
+
|
|
929
|
+
config_1.full_backtrace = true
|
|
930
|
+
expect(config_2.backtrace_clean_patterns).not_to be_empty
|
|
931
|
+
end
|
|
932
|
+
end
|
|
933
|
+
|
|
934
|
+
describe "#cleaned_from_backtrace? defaults" do
|
|
935
|
+
it "returns true for rspec files" do
|
|
936
|
+
expect(config.cleaned_from_backtrace?("lib/rspec/core.rb")).to be_true
|
|
937
|
+
end
|
|
938
|
+
|
|
939
|
+
it "returns true for spec_helper" do
|
|
940
|
+
expect(config.cleaned_from_backtrace?("spec/spec_helper.rb")).to be_true
|
|
941
|
+
end
|
|
942
|
+
|
|
943
|
+
it "returns true for java files (for JRuby)" do
|
|
944
|
+
expect(config.cleaned_from_backtrace?("org/jruby/RubyArray.java:2336")).to be_true
|
|
945
|
+
end
|
|
946
|
+
|
|
947
|
+
it "returns true for files within installed gems" do
|
|
948
|
+
expect(config.cleaned_from_backtrace?('ruby-1.8.7-p334/gems/mygem-2.3.0/lib/mygem.rb')).to be_true
|
|
949
|
+
end
|
|
950
|
+
|
|
951
|
+
it "returns false for files in projects containing 'gems' in the name" do
|
|
952
|
+
expect(config.cleaned_from_backtrace?('code/my-gems-plugin/lib/plugin.rb')).to be_false
|
|
953
|
+
end
|
|
954
|
+
end
|
|
955
|
+
|
|
956
|
+
describe "#debug=true" do
|
|
957
|
+
before do
|
|
958
|
+
if defined?(Debugger)
|
|
959
|
+
@orig_debugger = Debugger
|
|
960
|
+
Object.send(:remove_const, :Debugger)
|
|
961
|
+
else
|
|
962
|
+
@orig_debugger = nil
|
|
963
|
+
end
|
|
964
|
+
Object.const_set("Debugger", debugger)
|
|
965
|
+
end
|
|
966
|
+
|
|
967
|
+
after do
|
|
968
|
+
Object.send(:remove_const, :Debugger)
|
|
969
|
+
Object.const_set("Debugger", @orig_debugger) if @orig_debugger
|
|
970
|
+
end
|
|
971
|
+
|
|
972
|
+
let(:debugger) { double('Debugger').as_null_object }
|
|
973
|
+
|
|
974
|
+
it "requires 'ruby-debug'" do
|
|
975
|
+
config.should_receive(:require).with('ruby-debug')
|
|
976
|
+
config.debug = true
|
|
977
|
+
end
|
|
978
|
+
|
|
979
|
+
it "starts the debugger" do
|
|
980
|
+
config.stub(:require)
|
|
981
|
+
debugger.should_receive(:start)
|
|
982
|
+
config.debug = true
|
|
983
|
+
end
|
|
984
|
+
end
|
|
985
|
+
|
|
986
|
+
describe "#debug=false" do
|
|
987
|
+
it "does not require 'ruby-debug'" do
|
|
988
|
+
config.should_not_receive(:require).with('ruby-debug')
|
|
989
|
+
config.debug = false
|
|
990
|
+
end
|
|
991
|
+
end
|
|
992
|
+
|
|
993
|
+
describe "#output=" do
|
|
994
|
+
it "sets the output" do
|
|
995
|
+
output = double("output")
|
|
996
|
+
config.output = output
|
|
997
|
+
expect(config.output).to equal(output)
|
|
998
|
+
end
|
|
999
|
+
end
|
|
1000
|
+
|
|
1001
|
+
describe "#libs=" do
|
|
1002
|
+
it "adds directories to the LOAD_PATH" do
|
|
1003
|
+
$LOAD_PATH.should_receive(:unshift).with("a/dir")
|
|
1004
|
+
config.libs = ["a/dir"]
|
|
1005
|
+
end
|
|
1006
|
+
end
|
|
1007
|
+
|
|
1008
|
+
describe "#requires=" do
|
|
1009
|
+
it "requires paths" do
|
|
1010
|
+
config.should_receive(:require).with("a/path")
|
|
1011
|
+
config.requires = ["a/path"]
|
|
1012
|
+
end
|
|
1013
|
+
end
|
|
1014
|
+
|
|
1015
|
+
describe "#add_setting" do
|
|
1016
|
+
describe "with no modifiers" do
|
|
1017
|
+
context "with no additional options" do
|
|
1018
|
+
before do
|
|
1019
|
+
config.add_setting :custom_option
|
|
1020
|
+
end
|
|
1021
|
+
|
|
1022
|
+
it "defaults to nil" do
|
|
1023
|
+
expect(config.custom_option).to be_nil
|
|
1024
|
+
end
|
|
1025
|
+
|
|
1026
|
+
it "adds a predicate" do
|
|
1027
|
+
expect(config.custom_option?).to be_false
|
|
1028
|
+
end
|
|
1029
|
+
|
|
1030
|
+
it "can be overridden" do
|
|
1031
|
+
config.custom_option = "a value"
|
|
1032
|
+
expect(config.custom_option).to eq("a value")
|
|
1033
|
+
end
|
|
1034
|
+
end
|
|
1035
|
+
|
|
1036
|
+
context "with :default => 'a value'" do
|
|
1037
|
+
before do
|
|
1038
|
+
config.add_setting :custom_option, :default => 'a value'
|
|
1039
|
+
end
|
|
1040
|
+
|
|
1041
|
+
it "defaults to 'a value'" do
|
|
1042
|
+
expect(config.custom_option).to eq("a value")
|
|
1043
|
+
end
|
|
1044
|
+
|
|
1045
|
+
it "returns true for the predicate" do
|
|
1046
|
+
expect(config.custom_option?).to be_true
|
|
1047
|
+
end
|
|
1048
|
+
|
|
1049
|
+
it "can be overridden with a truthy value" do
|
|
1050
|
+
config.custom_option = "a new value"
|
|
1051
|
+
expect(config.custom_option).to eq("a new value")
|
|
1052
|
+
end
|
|
1053
|
+
|
|
1054
|
+
it "can be overridden with nil" do
|
|
1055
|
+
config.custom_option = nil
|
|
1056
|
+
expect(config.custom_option).to eq(nil)
|
|
1057
|
+
end
|
|
1058
|
+
|
|
1059
|
+
it "can be overridden with false" do
|
|
1060
|
+
config.custom_option = false
|
|
1061
|
+
expect(config.custom_option).to eq(false)
|
|
1062
|
+
end
|
|
1063
|
+
end
|
|
1064
|
+
end
|
|
1065
|
+
|
|
1066
|
+
context "with :alias => " do
|
|
1067
|
+
it "is deprecated" do
|
|
1068
|
+
RSpec::should_receive(:warn).with(/deprecated/)
|
|
1069
|
+
config.add_setting :custom_option
|
|
1070
|
+
config.add_setting :another_custom_option, :alias => :custom_option
|
|
1071
|
+
end
|
|
1072
|
+
end
|
|
1073
|
+
|
|
1074
|
+
context "with :alias_with => " do
|
|
1075
|
+
before do
|
|
1076
|
+
config.add_setting :custom_option, :alias_with => :another_custom_option
|
|
1077
|
+
end
|
|
1078
|
+
|
|
1079
|
+
it "delegates the getter to the other option" do
|
|
1080
|
+
config.another_custom_option = "this value"
|
|
1081
|
+
expect(config.custom_option).to eq("this value")
|
|
1082
|
+
end
|
|
1083
|
+
|
|
1084
|
+
it "delegates the setter to the other option" do
|
|
1085
|
+
config.custom_option = "this value"
|
|
1086
|
+
expect(config.another_custom_option).to eq("this value")
|
|
1087
|
+
end
|
|
1088
|
+
|
|
1089
|
+
it "delegates the predicate to the other option" do
|
|
1090
|
+
config.custom_option = true
|
|
1091
|
+
expect(config.another_custom_option?).to be_true
|
|
1092
|
+
end
|
|
1093
|
+
end
|
|
1094
|
+
end
|
|
1095
|
+
|
|
1096
|
+
describe "#configure_group" do
|
|
1097
|
+
it "extends with 'extend'" do
|
|
1098
|
+
mod = Module.new
|
|
1099
|
+
group = ExampleGroup.describe("group", :foo => :bar)
|
|
1100
|
+
|
|
1101
|
+
config.extend(mod, :foo => :bar)
|
|
1102
|
+
config.configure_group(group)
|
|
1103
|
+
expect(group).to be_a(mod)
|
|
1104
|
+
end
|
|
1105
|
+
|
|
1106
|
+
it "extends with 'module'" do
|
|
1107
|
+
mod = Module.new
|
|
1108
|
+
group = ExampleGroup.describe("group", :foo => :bar)
|
|
1109
|
+
|
|
1110
|
+
config.include(mod, :foo => :bar)
|
|
1111
|
+
config.configure_group(group)
|
|
1112
|
+
expect(group.included_modules).to include(mod)
|
|
1113
|
+
end
|
|
1114
|
+
|
|
1115
|
+
it "requires only one matching filter" do
|
|
1116
|
+
mod = Module.new
|
|
1117
|
+
group = ExampleGroup.describe("group", :foo => :bar)
|
|
1118
|
+
|
|
1119
|
+
config.include(mod, :foo => :bar, :baz => :bam)
|
|
1120
|
+
config.configure_group(group)
|
|
1121
|
+
expect(group.included_modules).to include(mod)
|
|
1122
|
+
end
|
|
1123
|
+
|
|
1124
|
+
it "includes each one before deciding whether to include the next" do
|
|
1125
|
+
mod1 = Module.new do
|
|
1126
|
+
def self.included(host)
|
|
1127
|
+
host.metadata[:foo] = :bar
|
|
1128
|
+
end
|
|
1129
|
+
end
|
|
1130
|
+
mod2 = Module.new
|
|
1131
|
+
|
|
1132
|
+
group = ExampleGroup.describe("group")
|
|
1133
|
+
|
|
1134
|
+
config.include(mod1)
|
|
1135
|
+
config.include(mod2, :foo => :bar)
|
|
1136
|
+
config.configure_group(group)
|
|
1137
|
+
expect(group.included_modules).to include(mod1)
|
|
1138
|
+
expect(group.included_modules).to include(mod2)
|
|
1139
|
+
end
|
|
1140
|
+
|
|
1141
|
+
module IncludeOrExtendMeOnce
|
|
1142
|
+
def self.included(host)
|
|
1143
|
+
raise "included again" if host.instance_methods.include?(:foobar)
|
|
1144
|
+
host.class_eval { def foobar; end }
|
|
1145
|
+
end
|
|
1146
|
+
|
|
1147
|
+
def self.extended(host)
|
|
1148
|
+
raise "extended again" if host.respond_to?(:foobar)
|
|
1149
|
+
def host.foobar; end
|
|
1150
|
+
end
|
|
1151
|
+
end
|
|
1152
|
+
|
|
1153
|
+
it "doesn't include a module when already included in ancestor" do
|
|
1154
|
+
config.include(IncludeOrExtendMeOnce, :foo => :bar)
|
|
1155
|
+
|
|
1156
|
+
group = ExampleGroup.describe("group", :foo => :bar)
|
|
1157
|
+
child = group.describe("child")
|
|
1158
|
+
|
|
1159
|
+
config.configure_group(group)
|
|
1160
|
+
config.configure_group(child)
|
|
1161
|
+
end
|
|
1162
|
+
|
|
1163
|
+
it "doesn't extend when ancestor is already extended with same module" do
|
|
1164
|
+
config.extend(IncludeOrExtendMeOnce, :foo => :bar)
|
|
1165
|
+
|
|
1166
|
+
group = ExampleGroup.describe("group", :foo => :bar)
|
|
1167
|
+
child = group.describe("child")
|
|
1168
|
+
|
|
1169
|
+
config.configure_group(group)
|
|
1170
|
+
config.configure_group(child)
|
|
1171
|
+
end
|
|
1172
|
+
end
|
|
1173
|
+
|
|
1174
|
+
describe "#alias_example_to" do
|
|
1175
|
+
it_behaves_like "metadata hash builder" do
|
|
1176
|
+
after do
|
|
1177
|
+
RSpec::Core::ExampleGroup.module_eval do
|
|
1178
|
+
class << self
|
|
1179
|
+
undef :my_example_method if method_defined? :my_example_method
|
|
1180
|
+
end
|
|
1181
|
+
end
|
|
1182
|
+
end
|
|
1183
|
+
def metadata_hash(*args)
|
|
1184
|
+
config.alias_example_to :my_example_method, *args
|
|
1185
|
+
group = ExampleGroup.describe("group")
|
|
1186
|
+
example = group.my_example_method("description")
|
|
1187
|
+
example.metadata
|
|
1188
|
+
end
|
|
1189
|
+
end
|
|
1190
|
+
end
|
|
1191
|
+
|
|
1192
|
+
describe "#reset" do
|
|
1193
|
+
it "clears the reporter" do
|
|
1194
|
+
expect(config.reporter).not_to be_nil
|
|
1195
|
+
config.reset
|
|
1196
|
+
expect(config.instance_variable_get("@reporter")).to be_nil
|
|
1197
|
+
end
|
|
1198
|
+
|
|
1199
|
+
it "clears the formatters" do
|
|
1200
|
+
config.add_formatter "doc"
|
|
1201
|
+
config.reset
|
|
1202
|
+
expect(config.formatters).to be_empty
|
|
1203
|
+
end
|
|
1204
|
+
end
|
|
1205
|
+
|
|
1206
|
+
describe "#force" do
|
|
1207
|
+
it "forces order" do
|
|
1208
|
+
config.force :order => "default"
|
|
1209
|
+
config.order = "rand"
|
|
1210
|
+
expect(config.order).to eq("default")
|
|
1211
|
+
end
|
|
1212
|
+
|
|
1213
|
+
it "forces order and seed with :order => 'rand:37'" do
|
|
1214
|
+
config.force :order => "rand:37"
|
|
1215
|
+
config.order = "default"
|
|
1216
|
+
expect(config.order).to eq("rand")
|
|
1217
|
+
expect(config.seed).to eq(37)
|
|
1218
|
+
end
|
|
1219
|
+
|
|
1220
|
+
it "forces order and seed with :seed => '37'" do
|
|
1221
|
+
config.force :seed => "37"
|
|
1222
|
+
config.order = "default"
|
|
1223
|
+
expect(config.seed).to eq(37)
|
|
1224
|
+
expect(config.order).to eq("rand")
|
|
1225
|
+
end
|
|
1226
|
+
|
|
1227
|
+
it 'can set random ordering' do
|
|
1228
|
+
config.force :seed => "rand:37"
|
|
1229
|
+
RSpec.stub(:configuration => config)
|
|
1230
|
+
list = [1, 2, 3, 4].extend(Extensions::Ordered::Examples)
|
|
1231
|
+
Kernel.should_receive(:rand).and_return(3, 1, 4, 2)
|
|
1232
|
+
expect(list.ordered).to eq([2, 4, 1, 3])
|
|
1233
|
+
end
|
|
1234
|
+
|
|
1235
|
+
it "forces 'false' value" do
|
|
1236
|
+
config.add_setting :custom_option
|
|
1237
|
+
config.custom_option = true
|
|
1238
|
+
expect(config.custom_option?).to be_true
|
|
1239
|
+
config.force :custom_option => false
|
|
1240
|
+
expect(config.custom_option?).to be_false
|
|
1241
|
+
config.custom_option = true
|
|
1242
|
+
expect(config.custom_option?).to be_false
|
|
1243
|
+
end
|
|
1244
|
+
end
|
|
1245
|
+
|
|
1246
|
+
describe '#seed' do
|
|
1247
|
+
it 'returns the seed as an int' do
|
|
1248
|
+
config.seed = '123'
|
|
1249
|
+
expect(config.seed).to eq(123)
|
|
1250
|
+
end
|
|
1251
|
+
end
|
|
1252
|
+
|
|
1253
|
+
describe '#randomize?' do
|
|
1254
|
+
context 'with order set to :random' do
|
|
1255
|
+
before { config.order = :random }
|
|
1256
|
+
|
|
1257
|
+
it 'returns true' do
|
|
1258
|
+
expect(config.randomize?).to be_true
|
|
1259
|
+
end
|
|
1260
|
+
end
|
|
1261
|
+
|
|
1262
|
+
context 'with order set to nil' do
|
|
1263
|
+
before { config.order = nil }
|
|
1264
|
+
|
|
1265
|
+
it 'returns false' do
|
|
1266
|
+
expect(config.randomize?).to be_false
|
|
1267
|
+
end
|
|
1268
|
+
end
|
|
1269
|
+
end
|
|
1270
|
+
|
|
1271
|
+
describe '#order=' do
|
|
1272
|
+
context 'given "random:123"' do
|
|
1273
|
+
before { config.order = 'random:123' }
|
|
1274
|
+
|
|
1275
|
+
it 'sets order to "random"' do
|
|
1276
|
+
expect(config.order).to eq('random')
|
|
1277
|
+
end
|
|
1278
|
+
|
|
1279
|
+
it 'sets seed to 123' do
|
|
1280
|
+
expect(config.seed).to eq(123)
|
|
1281
|
+
end
|
|
1282
|
+
|
|
1283
|
+
it 'sets up random ordering' do
|
|
1284
|
+
RSpec.stub(:configuration => config)
|
|
1285
|
+
list = [1, 2, 3, 4].extend(Extensions::Ordered::Examples)
|
|
1286
|
+
Kernel.should_receive(:rand).and_return(3, 1, 4, 2)
|
|
1287
|
+
expect(list.ordered).to eq([2, 4, 1, 3])
|
|
1288
|
+
end
|
|
1289
|
+
end
|
|
1290
|
+
|
|
1291
|
+
context 'given "default"' do
|
|
1292
|
+
before do
|
|
1293
|
+
config.order = 'rand:123'
|
|
1294
|
+
config.order = 'default'
|
|
1295
|
+
end
|
|
1296
|
+
|
|
1297
|
+
it "sets the order to nil" do
|
|
1298
|
+
expect(config.order).to be_nil
|
|
1299
|
+
end
|
|
1300
|
+
|
|
1301
|
+
it "sets the seed to nil" do
|
|
1302
|
+
expect(config.seed).to be_nil
|
|
1303
|
+
end
|
|
1304
|
+
|
|
1305
|
+
it 'clears the random ordering' do
|
|
1306
|
+
RSpec.stub(:configuration => config)
|
|
1307
|
+
list = [1, 2, 3, 4].extend(Extensions::Ordered::Examples)
|
|
1308
|
+
Kernel.should_not_receive(:rand)
|
|
1309
|
+
expect(list.ordered).to eq([1, 2, 3, 4])
|
|
1310
|
+
end
|
|
1311
|
+
end
|
|
1312
|
+
end
|
|
1313
|
+
|
|
1314
|
+
describe "#order_examples" do
|
|
1315
|
+
before { RSpec.stub(:configuration => config) }
|
|
1316
|
+
|
|
1317
|
+
it 'sets a block that determines the ordering of a collection extended with Extensions::Ordered::Examples' do
|
|
1318
|
+
examples = [1, 2, 3, 4]
|
|
1319
|
+
examples.extend Extensions::Ordered::Examples
|
|
1320
|
+
config.order_examples { |examples| examples.reverse }
|
|
1321
|
+
expect(examples.ordered).to eq([4, 3, 2, 1])
|
|
1322
|
+
end
|
|
1323
|
+
|
|
1324
|
+
it 'sets #order to "custom"' do
|
|
1325
|
+
config.order_examples { |examples| examples.reverse }
|
|
1326
|
+
expect(config.order).to eq("custom")
|
|
1327
|
+
end
|
|
1328
|
+
end
|
|
1329
|
+
|
|
1330
|
+
describe "#example_ordering_block" do
|
|
1331
|
+
it 'defaults to a block that returns the passed argument' do
|
|
1332
|
+
expect(config.example_ordering_block.call([1, 2, 3])).to eq([1, 2, 3])
|
|
1333
|
+
end
|
|
1334
|
+
end
|
|
1335
|
+
|
|
1336
|
+
describe "#order_groups" do
|
|
1337
|
+
before { RSpec.stub(:configuration => config) }
|
|
1338
|
+
|
|
1339
|
+
it 'sets a block that determines the ordering of a collection extended with Extensions::Ordered::ExampleGroups' do
|
|
1340
|
+
groups = [1, 2, 3, 4]
|
|
1341
|
+
groups.extend Extensions::Ordered::ExampleGroups
|
|
1342
|
+
config.order_groups { |groups| groups.reverse }
|
|
1343
|
+
expect(groups.ordered).to eq([4, 3, 2, 1])
|
|
1344
|
+
end
|
|
1345
|
+
|
|
1346
|
+
it 'sets #order to "custom"' do
|
|
1347
|
+
config.order_groups { |groups| groups.reverse }
|
|
1348
|
+
expect(config.order).to eq("custom")
|
|
1349
|
+
end
|
|
1350
|
+
end
|
|
1351
|
+
|
|
1352
|
+
describe "#group_ordering_block" do
|
|
1353
|
+
it 'defaults to a block that returns the passed argument' do
|
|
1354
|
+
expect(config.group_ordering_block.call([1, 2, 3])).to eq([1, 2, 3])
|
|
1355
|
+
end
|
|
1356
|
+
end
|
|
1357
|
+
|
|
1358
|
+
describe "#order_groups_and_examples" do
|
|
1359
|
+
let(:examples) { [1, 2, 3, 4].extend Extensions::Ordered::Examples }
|
|
1360
|
+
let(:groups) { [1, 2, 3, 4].extend Extensions::Ordered::ExampleGroups }
|
|
1361
|
+
|
|
1362
|
+
before do
|
|
1363
|
+
RSpec.stub(:configuration => config)
|
|
1364
|
+
config.order_groups_and_examples { |list| list.reverse }
|
|
1365
|
+
end
|
|
1366
|
+
|
|
1367
|
+
it 'sets a block that determines the ordering of a collection extended with Extensions::Ordered::Examples' do
|
|
1368
|
+
expect(examples.ordered).to eq([4, 3, 2, 1])
|
|
1369
|
+
end
|
|
1370
|
+
|
|
1371
|
+
it 'sets a block that determines the ordering of a collection extended with Extensions::Ordered::ExampleGroups' do
|
|
1372
|
+
expect(groups.ordered).to eq([4, 3, 2, 1])
|
|
1373
|
+
end
|
|
1374
|
+
end
|
|
1375
|
+
end
|
|
1376
|
+
end
|