#!/usr/bin/rubyrequire 'rspec/autorun'require 'net/ping'RSpec.configure do |config|config.full_backtrace=falseenddescribe "TEST A >> " doit "1:Ping is true >> " dohost = Net::Ping::External.new("www.google.com")host.ping?.should be_falseendend
/test_rspec.rb
F
Failures:
1) TEST A >> 1:Ping is true >>
Failure/Error: Unable to find matching line from backtrace
expected: false value
got: true
# ./test_rspec.rb:13:in `block (2 levels) in <main>'
Finished in 0.01479 seconds
1 example, 1 failure
Failed examples:
rspec ./test_rspec.rb:11 # TEST A >> 1:Ping is true >>
ls -l ~/bin/
total 24
lrwxr-xr-x 1 cliff.rosson USERS\Domain Users 49 Dec 30 16:56 test_rspec -> /Users/cliff.rosson/Desktop/scratch/test_rspec.rb
test_rspec
F
Failures:
1) TEST A >> 1:Ping is true >>
Failure/Error: host.ping?.should be_false
expected: false value
got: true
# /Library/Ruby/Gems/2.0.0/gems/rspec-expectations-2.14.5/lib/rspec/expectations/fail_with.rb:32:in `fail_with'
# /Library/Ruby/Gems/2.0.0/gems/rspec-expectations-2.14.5/lib/rspec/expectations/handler.rb:36:in `handle_matcher'
# /Library/Ruby/Gems/2.0.0/gems/rspec-expectations-2.14.5/lib/rspec/expectations/syntax.rb:53:in `should'
# /Users/cliff.rosson/bin/test_rspec:13:in `block (2 levels) in <main>'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:114:in `instance_eval'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:114:in `block in run'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:254:in `with_around_each_hooks'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:111:in `run'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-2.14.8/lib/rspec/core/example_group.rb:390:in `block in run_examples'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-2.14.8/lib/rspec/core/example_group.rb:386:in `map'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-2.14.8/lib/rspec/core/example_group.rb:386:in `run_examples'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-2.14.8/lib/rspec/core/example_group.rb:371:in `run'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-2.14.8/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-2.14.8/lib/rspec/core/command_line.rb:28:in `map'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-2.14.8/lib/rspec/core/command_line.rb:28:in `block in run'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-2.14.8/lib/rspec/core/reporter.rb:58:in `report'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-2.14.8/lib/rspec/core/command_line.rb:25:in `run'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-2.14.8/lib/rspec/core/runner.rb:80:in `run'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-2.14.8/lib/rspec/core/runner.rb:17:in `block in autorun'
Finished in 0.01452 seconds
1 example, 1 failure
Failed examples:
rspec /Users/cliff.rosson/bin/test_rspec:11 # TEST A >> 1:Ping is true >>
rspec (2.14.1)
rspec-core (2.14.8)
rspec-expectations (2.14.5)
rspec-mocks (2.14.6)
--
You received this message because you are subscribed to the Google Groups "rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rspec+un...@googlegroups.com.
To post to this group, send email to rs...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/62b49200-336a-4f42-8537-a82d536ecf8b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/4f6e5a17-e808-4f4c-8cfd-f734c9bed45a%40googlegroups.com.
#!/usr/bin/rubyrequire 'rspec/autorun'require 'net/ping'RSpec.configure do |config|config.full_backtrace=falseenddescribe "TEST A >> " doit "1:Ping is true >> " dohost = Net::Ping::External.new("www.google.com")
expect(host.ping?).to be falseendend
Cliffords-iMac:Desktop crosson$ /Users/crosson/Desktop/scratch/example.rb
F
Failures:
1) TEST A >> 1:Ping is true >>
Failure/Error: expect(host.ping?).to be false
expected false
got true
# ./scratch/example.rb:13:in `block (2 levels) in <main>'
Finished in 0.03627 seconds (files took 0.14898 seconds to load)
1 example, 1 failure
Failed examples:
rspec ./scratch/example.rb:11 # TEST A >> 1:Ping is true >>
Cliffords-iMac:Desktop crosson$ example
F
Failures:
1) TEST A >> 1:Ping is true >>
Failure/Error: expect(host.ping?).to be false
expected false
got true
# /Library/Ruby/Gems/2.0.0/gems/rspec-support-3.4.1/lib/rspec/support.rb:87:in `block in <module:Support>'
# /Library/Ruby/Gems/2.0.0/gems/rspec-support-3.4.1/lib/rspec/support.rb:96:in `call'
# /Library/Ruby/Gems/2.0.0/gems/rspec-support-3.4.1/lib/rspec/support.rb:96:in `notify_failure'
# /Library/Ruby/Gems/2.0.0/gems/rspec-expectations-3.4.0/lib/rspec/expectations/fail_with.rb:27:in `fail_with'
# /Library/Ruby/Gems/2.0.0/gems/rspec-expectations-3.4.0/lib/rspec/expectations/handler.rb:40:in `handle_failure'
# /Library/Ruby/Gems/2.0.0/gems/rspec-expectations-3.4.0/lib/rspec/expectations/handler.rb:50:in `block in handle_matcher'
# /Library/Ruby/Gems/2.0.0/gems/rspec-expectations-3.4.0/lib/rspec/expectations/handler.rb:27:in `with_matcher'
# /Library/Ruby/Gems/2.0.0/gems/rspec-expectations-3.4.0/lib/rspec/expectations/handler.rb:48:in `handle_matcher'
# /Library/Ruby/Gems/2.0.0/gems/rspec-expectations-3.4.0/lib/rspec/expectations/expectation_target.rb:54:in `to'
# /Users/crosson/bin/example:13:in `block (2 levels) in <main>'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.4.1/lib/rspec/core/example.rb:236:in `instance_exec'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.4.1/lib/rspec/core/example.rb:236:in `block in run'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.4.1/lib/rspec/core/example.rb:477:in `block in with_around_and_singleton_context_hooks'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.4.1/lib/rspec/core/example.rb:434:in `block in with_around_example_hooks'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.4.1/lib/rspec/core/hooks.rb:478:in `block in run'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.4.1/lib/rspec/core/hooks.rb:616:in `run_around_example_hooks_for'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.4.1/lib/rspec/core/hooks.rb:478:in `run'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.4.1/lib/rspec/core/example.rb:434:in `with_around_example_hooks'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.4.1/lib/rspec/core/example.rb:477:in `with_around_and_singleton_context_hooks'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.4.1/lib/rspec/core/example.rb:233:in `run'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.4.1/lib/rspec/core/example_group.rb:581:in `block in run_examples'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.4.1/lib/rspec/core/example_group.rb:577:in `map'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.4.1/lib/rspec/core/example_group.rb:577:in `run_examples'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.4.1/lib/rspec/core/example_group.rb:543:in `run'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.4.1/lib/rspec/core/runner.rb:115:in `block (3 levels) in run_specs'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.4.1/lib/rspec/core/runner.rb:115:in `map'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.4.1/lib/rspec/core/runner.rb:115:in `block (2 levels) in run_specs'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.4.1/lib/rspec/core/configuration.rb:1680:in `with_suite_hooks'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.4.1/lib/rspec/core/runner.rb:114:in `block in run_specs'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.4.1/lib/rspec/core/reporter.rb:77:in `report'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.4.1/lib/rspec/core/runner.rb:113:in `run_specs'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.4.1/lib/rspec/core/runner.rb:89:in `run'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.4.1/lib/rspec/core/runner.rb:73:in `run'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.4.1/lib/rspec/core/runner.rb:41:in `invoke'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.4.1/lib/rspec/core/runner.rb:34:in `perform_at_exit'
# /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.4.1/lib/rspec/core/runner.rb:20:in `block in autorun'
#
# Showing full backtrace because every line was filtered out.
# See docs for RSpec::Configuration#backtrace_exclusion_patterns and
# RSpec::Configuration#backtrace_inclusion_patterns for more information.
Finished in 0.03689 seconds (files took 0.15154 seconds to load)
1 example, 1 failure
Failed examples:
rspec /Users/crosson/bin/example:11 # TEST A >> 1:Ping is true >>
Cliffords-iMac:Desktop crosson$ ls ~/bin/
example
Cliffords-iMac:Desktop crosson$ ls -l ~/bin/
total 8
lrwxr-xr-x 1 crosson staff 41 Dec 31 16:59 example -> /Users/crosson/Desktop/scratch/example.rb
Cliffords-iMac:Desktop crosson$ cd ~/bin/
Cliffords-iMac:bin crosson$ example
F
Failures:
1) TEST A >> 1:Ping is true >>
Failure/Error: expect(host.ping?).to be false
expected false
got true
# ./example:13:in `block (2 levels) in <main>'
Finished in 0.03574 seconds (files took 0.16152 seconds to load)
1 example, 1 failure
Failed examples:
rspec ./example:11 # TEST A >> 1:Ping is true >>
To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/43dbe9de-59fd-44f2-a009-236c43f39eac%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "rspec" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rspec/RwkPXk3y7vE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rspec+un...@googlegroups.com.
To post to this group, send email to rs...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/0064257E07314AA7B36E1EB82257017C%40jonrowe.co.uk.
To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/CAKST4vw9hT40C1wg5HvK1SZhDuUrEOTQsnE6tMezzajJEZTvsA%40mail.gmail.com.
Tomorrow I'll test this once more. If my final attempts at figuring this out fails I'll and post something up on the issue tracker. Thank you everyone.
To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/CADUxQmvK5Bq9kRaAQaP3EOCudGFt9ZsXGHwCP%2BAnjoLXy50Svg%40mail.gmail.com.