Skip to content

Instantly share code, notes, and snippets.

@marzzz21
Created August 29, 2016 07:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marzzz21/f50649035f98c21d1746bdf9bf9179b4 to your computer and use it in GitHub Desktop.
Save marzzz21/f50649035f98c21d1746bdf9bf9179b4 to your computer and use it in GitHub Desktop.
mihaelkeehl@mihael-k33hl:~/rise-chef-repo/cookbooks/mirror/files/default/scripts$ rspec -b ./spec/test_mirrorsyncdaemon.rb
/home/mihaelkeehl/rise-chef-repo/cookbooks/mirror/files/default/scripts/bundle/ruby/2.3.0/gems/beaneater-1.0.0/lib/beaneater/tube/collection.rb:178: warning: assigned but unused variable - last_used
/home/mihaelkeehl/rise-chef-repo/cookbooks/mirror/files/default/scripts/lib/beaneater_config.rb:10: warning: assigned but unused variable - e
/home/mihaelkeehl/rise-chef-repo/cookbooks/mirror/files/default/scripts/bundle/ruby/2.3.0/gems/rsync-1.0.9/lib/rsync/configure.rb:7: warning: `*' interpreted as argument prefix
F
Failures:
1) MirrorSyncDaemon deletes the PID_FILE if it exists but contains invalid PID
Failure/Error: if File.exist?(PID_FILE)
TypeError:
no implicit conversion of Fixnum into String
# ./lib/mirrorsyncdaemon.rb:124:in `exist?'
# ./lib/mirrorsyncdaemon.rb:124:in `check_status'
# ./spec/test_mirrorsyncdaemon.rb:10:in `block (2 levels) in <top (required)>'
# ./bundle/ruby/2.3.0/gems/rspec-core-3.5.2/lib/rspec/core/example.rb:254:in `instance_exec'
# ./bundle/ruby/2.3.0/gems/rspec-core-3.5.2/lib/rspec/core/example.rb:254:in `block in run'
# ./bundle/ruby/2.3.0/gems/rspec-core-3.5.2/lib/rspec/core/example.rb:496:in `block in with_around_and_singleton_context_hooks'
# ./bundle/ruby/2.3.0/gems/rspec-core-3.5.2/lib/rspec/core/example.rb:453:in `block in with_around_example_hooks'
# ./bundle/ruby/2.3.0/gems/rspec-core-3.5.2/lib/rspec/core/hooks.rb:471:in `block in run'
# ./bundle/ruby/2.3.0/gems/rspec-core-3.5.2/lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for'
# ./bundle/ruby/2.3.0/gems/rspec-core-3.5.2/lib/rspec/core/hooks.rb:471:in `run'
# ./bundle/ruby/2.3.0/gems/rspec-core-3.5.2/lib/rspec/core/example.rb:453:in `with_around_example_hooks'
# ./bundle/ruby/2.3.0/gems/rspec-core-3.5.2/lib/rspec/core/example.rb:496:in `with_around_and_singleton_context_hooks'
# ./bundle/ruby/2.3.0/gems/rspec-core-3.5.2/lib/rspec/core/example.rb:251:in `run'
# ./bundle/ruby/2.3.0/gems/rspec-core-3.5.2/lib/rspec/core/example_group.rb:627:in `block in run_examples'
# ./bundle/ruby/2.3.0/gems/rspec-core-3.5.2/lib/rspec/core/example_group.rb:623:in `map'
# ./bundle/ruby/2.3.0/gems/rspec-core-3.5.2/lib/rspec/core/example_group.rb:623:in `run_examples'
# ./bundle/ruby/2.3.0/gems/rspec-core-3.5.2/lib/rspec/core/example_group.rb:589:in `run'
# ./bundle/ruby/2.3.0/gems/rspec-core-3.5.2/lib/rspec/core/runner.rb:113:in `block (3 levels) in run_specs'
# ./bundle/ruby/2.3.0/gems/rspec-core-3.5.2/lib/rspec/core/runner.rb:113:in `map'
# ./bundle/ruby/2.3.0/gems/rspec-core-3.5.2/lib/rspec/core/runner.rb:113:in `block (2 levels) in run_specs'
# ./bundle/ruby/2.3.0/gems/rspec-core-3.5.2/lib/rspec/core/configuration.rb:1836:in `with_suite_hooks'
# ./bundle/ruby/2.3.0/gems/rspec-core-3.5.2/lib/rspec/core/runner.rb:112:in `block in run_specs'
# ./bundle/ruby/2.3.0/gems/rspec-core-3.5.2/lib/rspec/core/reporter.rb:77:in `report'
# ./bundle/ruby/2.3.0/gems/rspec-core-3.5.2/lib/rspec/core/runner.rb:111:in `run_specs'
# ./bundle/ruby/2.3.0/gems/rspec-core-3.5.2/lib/rspec/core/runner.rb:87:in `run'
# ./bundle/ruby/2.3.0/gems/rspec-core-3.5.2/lib/rspec/core/runner.rb:71:in `run'
# ./bundle/ruby/2.3.0/gems/rspec-core-3.5.2/lib/rspec/core/runner.rb:45:in `invoke'
# ./bundle/ruby/2.3.0/gems/rspec-core-3.5.2/exe/rspec:4:in `<top (required)>'
# ./bundle/ruby/2.3.0/bin/rspec:23:in `load'
# ./bundle/ruby/2.3.0/bin/rspec:23:in `<top (required)>'
# /home/mihaelkeehl/.rvm/gems/ruby-2.3.1/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
# /home/mihaelkeehl/.rvm/gems/ruby-2.3.1/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
# /home/mihaelkeehl/.rvm/gems/ruby-2.3.1/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
# /home/mihaelkeehl/.rvm/gems/ruby-2.3.1/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
# /home/mihaelkeehl/.rvm/gems/ruby-2.3.1/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
# /home/mihaelkeehl/.rvm/gems/ruby-2.3.1/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
# /home/mihaelkeehl/.rvm/gems/ruby-2.3.1/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
# /home/mihaelkeehl/.rvm/gems/ruby-2.3.1/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
# /home/mihaelkeehl/.rvm/gems/ruby-2.3.1/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
# /home/mihaelkeehl/.rvm/gems/ruby-2.3.1/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
# /home/mihaelkeehl/.rvm/gems/ruby-2.3.1/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
# /home/mihaelkeehl/.rvm/gems/ruby-2.3.1/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
# /home/mihaelkeehl/.rvm/gems/ruby-2.3.1/bin/bundle:23:in `load'
# /home/mihaelkeehl/.rvm/gems/ruby-2.3.1/bin/bundle:23:in `<main>'
# /home/mihaelkeehl/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `eval'
# /home/mihaelkeehl/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `<main>'
Deprecation Warnings:
Using `stub` from rspec-mocks' old `:should` syntax without explicitly enabling the syntax is deprecated. Use the new `:expect` syntax or explicitly enable `:should` instead. Called from /home/mihaelkeehl/rise-chef-repo/cookbooks/mirror/files/default/scripts/spec/test_mirrorsyncdaemon.rb:9:in `block (2 levels) in <top (required)>'.
If you need more of the backtrace for any of these deprecations to
identify where to make the necessary changes, you can configure
`config.raise_errors_for_deprecations!`, and it will turn the
deprecation warnings into errors, giving you the full backtrace.
1 deprecation warning total
Finished in 0.00104 seconds (files took 0.13169 seconds to load)
1 example, 1 failure
Failed examples:
rspec ./spec/test_mirrorsyncdaemon.rb:6 # MirrorSyncDaemon deletes the PID_FILE if it exists but contains invalid PID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment