Skip to content

Instantly share code, notes, and snippets.

@TylerRick
Created August 14, 2012 20:04
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 TylerRick/3352348 to your computer and use it in GitHub Desktop.
Save TylerRick/3352348 to your computer and use it in GitHub Desktop.
> bundle exec rspec --backtrace spec/rspec/core/subject_spec.rb
Run options:
include {:focus=>true}
exclude {:ruby=>#<Proc:./spec/spec_helper.rb:84>}
All examples were filtered out; ignoring {:focus=>true}
...FF.........................
Failures:
1) 1 to_s
Failure/Error: its(:to_s) { should == '1' }
expected: "1"
got: "to_s" (using ==)
# /home/tyler/dev/ruby/rspec/rspec-expectations/lib/rspec/expectations/fail_with.rb:33:in `fail_with'
# /home/tyler/dev/ruby/rspec/rspec-expectations/lib/rspec/matchers/operator_matcher.rb:47:in `fail_with_message'
# /home/tyler/dev/ruby/rspec/rspec-expectations/lib/rspec/matchers/operator_matcher.rb:69:in `__delegate_operator'
# /home/tyler/dev/ruby/rspec/rspec-expectations/lib/rspec/matchers/operator_matcher.rb:59:in `eval_match'
# /home/tyler/dev/ruby/rspec/rspec-expectations/lib/rspec/matchers/operator_matcher.rb:28:in `block in use_custom_matcher_or_delegate'
# ./spec/rspec/core/subject_spec.rb:24:in `block (2 levels) in <top (required)>'
# ./lib/rspec/core/subject.rb:160:in `instance_eval'
# ./lib/rspec/core/subject.rb:160:in `block (2 levels) in its'
# ./lib/rspec/core/example.rb:113:in `instance_eval'
# ./lib/rspec/core/example.rb:113:in `block in run'
# ./lib/rspec/core/example.rb:178:in `call'
# ./lib/rspec/core/example.rb:178:in `run'
# ./spec/spec_helper.rb:72:in `block (4 levels) in <top (required)>'
# ./spec/spec_helper.rb:53:in `instance_eval'
# ./spec/spec_helper.rb:53:in `sandboxed'
# ./spec/spec_helper.rb:72:in `block (3 levels) in <top (required)>'
# ./lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_exec'
# ./lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_eval_with_args'
# ./lib/rspec/core/example.rb:246:in `instance_eval_with_args'
# ./lib/rspec/core/hooks.rb:93:in `block (2 levels) in run'
# ./lib/rspec/core/hooks.rb:91:in `call'
# ./lib/rspec/core/hooks.rb:91:in `run'
# ./lib/rspec/core/hooks.rb:424:in `run_hook'
# ./lib/rspec/core/example_group.rb:319:in `run_around_each_hooks'
# ./lib/rspec/core/example.rb:255:in `with_around_each_hooks'
# ./lib/rspec/core/example.rb:110:in `run'
# ./lib/rspec/core/example_group.rb:379:in `block in run_examples'
# ./lib/rspec/core/example_group.rb:375:in `map'
# ./lib/rspec/core/example_group.rb:375:in `run_examples'
# ./lib/rspec/core/example_group.rb:361:in `run'
# ./lib/rspec/core/example_group.rb:362:in `block in run'
# ./lib/rspec/core/example_group.rb:362:in `map'
# ./lib/rspec/core/example_group.rb:362:in `run'
# ./lib/rspec/core/command_line.rb:28:in `block (2 levels) in run'
# ./lib/rspec/core/command_line.rb:28:in `map'
# ./lib/rspec/core/command_line.rb:28:in `block in run'
# ./lib/rspec/core/reporter.rb:34:in `report'
# ./lib/rspec/core/command_line.rb:25:in `run'
# ./lib/rspec/core/runner.rb:69:in `run'
# ./lib/rspec/core/runner.rb:8:in `block in autorun'
2) 1 to_s
Failure/Error: its(:to_s) { should == 1 }
expected: 1
got: "1" (using ==)
# /home/tyler/dev/ruby/rspec/rspec-expectations/lib/rspec/expectations/fail_with.rb:33:in `fail_with'
# /home/tyler/dev/ruby/rspec/rspec-expectations/lib/rspec/matchers/operator_matcher.rb:47:in `fail_with_message'
# /home/tyler/dev/ruby/rspec/rspec-expectations/lib/rspec/matchers/operator_matcher.rb:69:in `__delegate_operator'
# /home/tyler/dev/ruby/rspec/rspec-expectations/lib/rspec/matchers/operator_matcher.rb:59:in `eval_match'
# /home/tyler/dev/ruby/rspec/rspec-expectations/lib/rspec/matchers/operator_matcher.rb:28:in `block in use_custom_matcher_or_delegate'
# ./spec/rspec/core/subject_spec.rb:20:in `block (2 levels) in <top (required)>'
# ./lib/rspec/core/subject.rb:160:in `instance_eval'
# ./lib/rspec/core/subject.rb:160:in `block (2 levels) in its'
# ./lib/rspec/core/example.rb:113:in `instance_eval'
# ./lib/rspec/core/example.rb:113:in `block in run'
# ./lib/rspec/core/example.rb:178:in `call'
# ./lib/rspec/core/example.rb:178:in `run'
# ./spec/spec_helper.rb:72:in `block (4 levels) in <top (required)>'
# ./spec/spec_helper.rb:53:in `instance_eval'
# ./spec/spec_helper.rb:53:in `sandboxed'
# ./spec/spec_helper.rb:72:in `block (3 levels) in <top (required)>'
# ./lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_exec'
# ./lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_eval_with_args'
# ./lib/rspec/core/example.rb:246:in `instance_eval_with_args'
# ./lib/rspec/core/hooks.rb:93:in `block (2 levels) in run'
# ./lib/rspec/core/hooks.rb:91:in `call'
# ./lib/rspec/core/hooks.rb:91:in `run'
# ./lib/rspec/core/hooks.rb:424:in `run_hook'
# ./lib/rspec/core/example_group.rb:319:in `run_around_each_hooks'
# ./lib/rspec/core/example.rb:255:in `with_around_each_hooks'
# ./lib/rspec/core/example.rb:110:in `run'
# ./lib/rspec/core/example_group.rb:379:in `block in run_examples'
# ./lib/rspec/core/example_group.rb:375:in `map'
# ./lib/rspec/core/example_group.rb:375:in `run_examples'
# ./lib/rspec/core/example_group.rb:361:in `run'
# ./lib/rspec/core/example_group.rb:362:in `block in run'
# ./lib/rspec/core/example_group.rb:362:in `map'
# ./lib/rspec/core/example_group.rb:362:in `run'
# ./lib/rspec/core/command_line.rb:28:in `block (2 levels) in run'
# ./lib/rspec/core/command_line.rb:28:in `map'
# ./lib/rspec/core/command_line.rb:28:in `block in run'
# ./lib/rspec/core/reporter.rb:34:in `report'
# ./lib/rspec/core/command_line.rb:25:in `run'
# ./lib/rspec/core/runner.rb:69:in `run'
# ./lib/rspec/core/runner.rb:8:in `block in autorun'
Finished in 0.03279 seconds
30 examples, 2 failures
Failed examples:
rspec ./spec/rspec/core/subject_spec.rb:24 # 1 to_s
rspec ./spec/rspec/core/subject_spec.rb:20 # 1 to_s
Randomized with seed 9243
> bundle exec rspec --order default --backtrace spec/rspec/core/named_subject_and_its_spec.rb
........FFF
Failures:
1) Group using subject(:group) active_members
Failure/Error: its(:active_members) { should == group.all_members } # undefined method `all_members' for []:Array
NoMethodError:
undefined method `all_members' for []:Array
# ./spec/rspec/core/named_subject_and_its_spec.rb:34:in `block (3 levels) in <top (required)>'
# ./lib/rspec/core/subject.rb:160:in `instance_eval'
# ./lib/rspec/core/subject.rb:160:in `block (2 levels) in its'
# ./lib/rspec/core/example.rb:113:in `instance_eval'
# ./lib/rspec/core/example.rb:113:in `block in run'
# ./lib/rspec/core/example.rb:253:in `with_around_each_hooks'
# ./lib/rspec/core/example.rb:110:in `run'
# ./lib/rspec/core/example_group.rb:379:in `block in run_examples'
# ./lib/rspec/core/example_group.rb:375:in `map'
# ./lib/rspec/core/example_group.rb:375:in `run_examples'
# ./lib/rspec/core/example_group.rb:361:in `run'
# ./lib/rspec/core/example_group.rb:362:in `block in run'
# ./lib/rspec/core/example_group.rb:362:in `map'
# ./lib/rspec/core/example_group.rb:362:in `run'
# ./lib/rspec/core/example_group.rb:362:in `block in run'
# ./lib/rspec/core/example_group.rb:362:in `map'
# ./lib/rspec/core/example_group.rb:362:in `run'
# ./lib/rspec/core/command_line.rb:28:in `block (2 levels) in run'
# ./lib/rspec/core/command_line.rb:28:in `map'
# ./lib/rspec/core/command_line.rb:28:in `block in run'
# ./lib/rspec/core/reporter.rb:34:in `report'
# ./lib/rspec/core/command_line.rb:25:in `run'
# ./lib/rspec/core/runner.rb:69:in `run'
# ./lib/rspec/core/runner.rb:8:in `block in autorun'
2) Group using subject(:group) active_members
Failure/Error: its(:active_members) { group.should be_a(Group) } # expected [] to be a kind of Group
expected [] to be a kind of Group
# /home/tyler/dev/ruby/rspec/rspec-expectations/lib/rspec/expectations/fail_with.rb:33:in `fail_with'
# /home/tyler/dev/ruby/rspec/rspec-expectations/lib/rspec/expectations/handler.rb:19:in `handle_matcher'
# /home/tyler/dev/ruby/rspec/rspec-expectations/lib/rspec/expectations/syntax.rb:53:in `should'
# ./spec/rspec/core/named_subject_and_its_spec.rb:35:in `block (3 levels) in <top (required)>'
# ./lib/rspec/core/subject.rb:160:in `instance_eval'
# ./lib/rspec/core/subject.rb:160:in `block (2 levels) in its'
# ./lib/rspec/core/example.rb:113:in `instance_eval'
# ./lib/rspec/core/example.rb:113:in `block in run'
# ./lib/rspec/core/example.rb:253:in `with_around_each_hooks'
# ./lib/rspec/core/example.rb:110:in `run'
# ./lib/rspec/core/example_group.rb:379:in `block in run_examples'
# ./lib/rspec/core/example_group.rb:375:in `map'
# ./lib/rspec/core/example_group.rb:375:in `run_examples'
# ./lib/rspec/core/example_group.rb:361:in `run'
# ./lib/rspec/core/example_group.rb:362:in `block in run'
# ./lib/rspec/core/example_group.rb:362:in `map'
# ./lib/rspec/core/example_group.rb:362:in `run'
# ./lib/rspec/core/example_group.rb:362:in `block in run'
# ./lib/rspec/core/example_group.rb:362:in `map'
# ./lib/rspec/core/example_group.rb:362:in `run'
# ./lib/rspec/core/command_line.rb:28:in `block (2 levels) in run'
# ./lib/rspec/core/command_line.rb:28:in `map'
# ./lib/rspec/core/command_line.rb:28:in `block in run'
# ./lib/rspec/core/reporter.rb:34:in `report'
# ./lib/rspec/core/command_line.rb:25:in `run'
# ./lib/rspec/core/runner.rb:69:in `run'
# ./lib/rspec/core/runner.rb:8:in `block in autorun'
3) Group using subject(:group) active_members
Failure/Error: its(:active_members) { subject.should_not == group } # expected not: == [], got: []
expected not: == []
got: []
# /home/tyler/dev/ruby/rspec/rspec-expectations/lib/rspec/expectations/fail_with.rb:33:in `fail_with'
# /home/tyler/dev/ruby/rspec/rspec-expectations/lib/rspec/matchers/operator_matcher.rb:47:in `fail_with_message'
# /home/tyler/dev/ruby/rspec/rspec-expectations/lib/rspec/matchers/operator_matcher.rb:79:in `__delegate_operator'
# /home/tyler/dev/ruby/rspec/rspec-expectations/lib/rspec/matchers/operator_matcher.rb:59:in `eval_match'
# /home/tyler/dev/ruby/rspec/rspec-expectations/lib/rspec/matchers/operator_matcher.rb:28:in `block in use_custom_matcher_or_delegate'
# ./spec/rspec/core/named_subject_and_its_spec.rb:36:in `block (3 levels) in <top (required)>'
# ./lib/rspec/core/subject.rb:160:in `instance_eval'
# ./lib/rspec/core/subject.rb:160:in `block (2 levels) in its'
# ./lib/rspec/core/example.rb:113:in `instance_eval'
# ./lib/rspec/core/example.rb:113:in `block in run'
# ./lib/rspec/core/example.rb:253:in `with_around_each_hooks'
# ./lib/rspec/core/example.rb:110:in `run'
# ./lib/rspec/core/example_group.rb:379:in `block in run_examples'
# ./lib/rspec/core/example_group.rb:375:in `map'
# ./lib/rspec/core/example_group.rb:375:in `run_examples'
# ./lib/rspec/core/example_group.rb:361:in `run'
# ./lib/rspec/core/example_group.rb:362:in `block in run'
# ./lib/rspec/core/example_group.rb:362:in `map'
# ./lib/rspec/core/example_group.rb:362:in `run'
# ./lib/rspec/core/example_group.rb:362:in `block in run'
# ./lib/rspec/core/example_group.rb:362:in `map'
# ./lib/rspec/core/example_group.rb:362:in `run'
# ./lib/rspec/core/command_line.rb:28:in `block (2 levels) in run'
# ./lib/rspec/core/command_line.rb:28:in `map'
# ./lib/rspec/core/command_line.rb:28:in `block in run'
# ./lib/rspec/core/reporter.rb:34:in `report'
# ./lib/rspec/core/command_line.rb:25:in `run'
# ./lib/rspec/core/runner.rb:69:in `run'
# ./lib/rspec/core/runner.rb:8:in `block in autorun'
Finished in 0.00353 seconds
11 examples, 3 failures
Failed examples:
rspec ./spec/rspec/core/named_subject_and_its_spec.rb:34 # Group using subject(:group) active_members
rspec ./spec/rspec/core/named_subject_and_its_spec.rb:35 # Group using subject(:group) active_members
rspec ./spec/rspec/core/named_subject_and_its_spec.rb:36 # Group using subject(:group) active_members
> bundle list
Gems included by the bundle:
* ZenTest (4.6.2)
* aruba (0.4.11)
* builder (3.0.0)
* bundler (1.1.3)
* childprocess (0.3.2)
* cucumber (1.1.9)
* diff-lcs (1.1.3)
* fakefs (0.4.0)
* ffi (1.0.11)
* flexmock (0.9.0)
* gherkin (2.9.3)
* github-markup (0.7.2)
* json (1.7.3)
* metaclass (0.0.1)
* mocha (0.10.5)
* nokogiri (1.5.2)
* rake (0.9.2.2)
* redcarpet (2.1.1)
* rr (1.0.4)
* rspec (2.11.0 3c5104f)
* rspec-core (2.11.1 f44cd89)
* rspec-expectations (2.11.2 d427bac)
* rspec-mocks (2.11.2 39ae1f3)
* syntax (1.0.0)
* term-ansicolor (1.0.7)
* yard (0.8.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment