[Rspec-devel] volunteers to prove out experiment

DeeJay smartgpx at gmail.com
Wed Sep 6 02:23:10 EDT 2006


Since this is now in trunk this feedback is of academic interest only.

"what's OCI?"   One Click Installer. The de-facto standard distribution of
ruby for Windows. Apologies for throwing in an undefined TLA - I thought
it was commonplace.


" The failing_examples are supposed to fail and the rake script is
supposed to account for it and continue. However, this is a little
tricky and no effort has been put in to make this work on windows. "

Setting FAIL_ON_ERROR false in the spec task for the failing examples
allows rake to continue and generate the .gem

desc "Run all failing examples"
Spec::Rake::SpecTask.new('failing_examples') do |t|
  t.spec_files = FileList['failing_examples/**/*_spec.rb']
  t.fail_on_error = false     #  DJR
end


"  What exact command are you running and what errors do you see? (Run
Rake with -v -t) "

Literal answer is "rake gem", just as you asked!  Sensible answer is that
the
output from rake -v -t gem is probably more verbose than a mailing list
wants.
I'll mail it privately if it might be of any value.

Some highlights are:



** Execute test
C:/OneClickRuby/ruby/lib/ruby/gems/1.8/gems/diff-lcs-1.1.2
/lib/diff/lcs/hunk.rb:
69: warning: method redefined; discarding old flag_context=
./test/spec/expectations/sugar_test.rb:41: warning: method redefined;
discarding
 old test_should_allow_underscored_anys_on_mocks
./test/spec/runner/../../test_helper.rb:16: warning: method redefined;
discardin
g old verify_sexp_equal
./test/spec/runner/../../test_helper.rb:22: warning: method redefined;
discardin
g old my_pp
./test/spec/runner/formatter/../../../test_helper.rb:16: warning: method
redefin
ed; discarding old verify_sexp_equal
./test/spec/runner/formatter/../../../test_helper.rb:22: warning: method
redefin
ed; discarding old my_pp
./test/spec/mocks/../../test_helper.rb:16: warning: method redefined;
discarding
 old verify_sexp_equal
./test/spec/mocks/../../test_helper.rb:22: warning: method redefined;
discarding
 old my_pp
./test/spec/mocks/mock_test.rb:7: warning: method redefined; discarding old
setu
p
Loaded suite C:/OneClickRuby/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1
/lib/rake/rak
e_test_loader
Started
(eval):2: warning: method redefined; discarding old message
(eval):2: warning: method redefined; discarding old random_call
(eval):2: warning: method redefined; discarding old random_call
(eval):2: warning: method redefined; discarding old spec_failed
................................................................................
................................................................................
................................................................................
................................................................................
...................
Finished in 0.375 seconds.

339 tests, 323 assertions, 0 failures, 0 errors
C:/OneClickRuby/ruby/bin/ruby
-I"G:/RubyPackages/rSpec_repository/branches/modul
arized/lib"
"G:/RubyPackages/rSpec_repository/branches/modularized/bin/spec"  "f
ailing_examples/empty_stack_spec.rb" "failing_examples/stack_spec.rb"
"failing_e
xamples/team_spec.rb" "failing_examples/big_string_spec.rb"
"failing_examples/mo
cking_spec.rb" "failing_examples/spec_framework_spec.rb"
"failing_examples/airpo
rt_spec.rb"
** Invoke doc (first_time, not_needed)
** Invoke lib (first_time, not_needed)
** Invoke failing_examples (first_time)
** Execute failing_examples

...FF.....F......FF.F.FFFF...F

1)
NoMethodError in 'A stack with one item should return top when sent top'
undefined method `top_should_be' for #<Stack:0x2c437ac @items=[3]>
G:/RubyPackages/rSpec_repository/branches/modularized/lib/spec/expectations/suga
C:/OneClickRuby/ruby/bin/ruby
-I"G:/RubyPackages/rSpec_repository/branches/modul
arized/lib"
"G:/RubyPackages/rSpec_repository/branches/modularized/bin/spec"  "e
xamples/stack_spec.rb" "examples/bdd_framework_spec.rb"
"examples/io_processor_s
pec.rb" "examples/mocking_spec.rb" "examples/custom_method_spec.rb"
"examples/te
st_case_spec.rb" "examples/airport_spec.rb" "examples/file_accessor_spec.rb"
"ex
amples/sugar_spec.rb"
r.rb:16:in `call'
G:/RubyPackages/rSpec_repository/branches/modularized/lib/spec/expectations/suga
r.rb:16:in `_method_missing'
G:/RubyPackages/rSpec_repository/branches/modularized/lib/spec/expectations/suga
r.rb:12:in `method_missing'
./failing_examples/stack_spec.rb:16:in `should return top when sent top'

[ other detailed failures suppressed...  DJR ]



11)
Spec::Expectations::ExpectationNotMetError in 'Airport at home should not
need e
lectricity'
Airport #<Airport:0x2c2eb04> should not need electricity
G:/RubyPackages/rSpec_repository/branches/modularized/lib/spec/expectations/help
er/should_base.rb:27:in `fail_with_message'
G:/RubyPackages/rSpec_repository/branches/modularized/lib/spec/expectations/help
er/should_negator.rb:66:in `method_missing'
G:/RubyPackages/rSpec_repository/branches/modularized/lib/spec/expectations/suga
r.rb:27:in `__send__'
G:/RubyPackages/rSpec_repository/branches/modularized/lib/spec/expectations/suga
r.rb:27:in `_method_missing'
G:/RubyPackages/rSpec_repository/branches/modularized/lib/spec/expectations/suga
r.rb:12:in `method_missing'
./failing_examples/airport_spec.rb:28:in `should not need electricity'

Finished in 0.031 seconds

30 specifications, 11 failures



Let me know if you want any more input on this. I'll checkout trunk before I
try again.



DeeJay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-devel/attachments/20060906/f7cabbee/attachment.html 


More information about the Rspec-devel mailing list