[RubySpec] Multiple spec failures for delegate library
------------------------------------------------------

                 Key: JRUBY-4870
                 URL: http://jira.codehaus.org/browse/JRUBY-4870
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.5.1
            Reporter: Vladimir Sizikov


{noformat}
mspec ci -tj library/delegate
jruby 1.6.0.dev (ruby 1.8.7 patchlevel 249) (2010-06-13 7ceaee3) (Java 
HotSpot(TM) Client VM 1.6.0_03) [i386-java]
.E......F......F..........F......F....F.F..............F......E

1)
DelegateClass.instance_method returns a method object for protected instance 
methods of the delegated class ERROR
NameError: undefined method `prot' for class `DelegateSpecs::DelegateClass'
/opt/work/rubyspec.git/library/delegate/delegate_class/instance_method_spec.rb:4
/opt/work/rubyspec.git/library/delegate/delegate_class/instance_method_spec.rb:56:in
 `load'
/opt/work/mspec.git/bin/mspec-ci:8

2)
DelegateClass.instance_methods includes all protected methods of the delegated 
class FAILED
Expected ["extra_protected", "extra", "equal", "flunk", "fixnum_max", 
"be_empty", "be_computed_by", "pretty_print_cycle", "as_user", "be_close", 
"==", "output_to_fd", "ruby_version_is", "pub", "with_tty", "have_constant", 
"ruby_exe", "resolve_ruby_exe", "responds_to", "eql", "it_behaves_like", 
"runner_is_not", "dev_null", "little_endian", "platform_is", "mkdir_p", "it", 
"infinity_value", "ruby_exe_options", "rm_r", "raise_error", "__setobj__", 
"have_class_variable", "bignum_value", "with_feature", "fake!", 
"have_private_method", "fmode", "be_kind_of", "deviates_on", "platform_is_not", 
"have_private_instance_method", "metaclass", "have_instance_variable", 
"have_protected_instance_method", "enumerator_class", "have_method", "env", 
"to_s", "unspecified", "pretty_print_inspect", "equal_utf16", "describe", 
"mock", "cp", "hash_class", "be_an_instance_of", "before", "to_a", 
"extended_on", "not_compliant_on", "username", "big_endian", "nan_value", 
"it_should_behave_like", "be_true", "include_class", "have_instance_method", 
"quarantine!", "__mspec_object_id__", "should_not", "conflicts_with", 
"home_directory", "=~", "context", "complain", "inspect", "undefine", "argv", 
"should", "language_version", "process_is_foreground", "specified_on", 
"method_missing", "tmp", "stub!", "output", "fixture", "runner_is", 
"handle_different_imports", "respond_to?", "not_supported_on", "new_hash", 
"===", "have_public_instance_method", "compliant_on", "pretty_print", 
"respond_to_missing?", "clone", "as_superuser", "does_not_respond_to", "touch", 
"ruby_bug", "encode", "have_data", "match_yaml", "fixnum_min", "respond_to", 
"java_kind_of?", "__jtrap", "windows_env_echo", "new_fd", "should_receive", 
"new_io", "dup", "pretty_print_instance_variables", "equal_element", 
"__getobj__", "be_false", "be_ancestor_of", "be_nil", "mock_to_path", "after", 
"should_not_receive", "mock_numeric", "doc", "specify", "java_signature", 
"methods", "freeze", "extend", "nil?", "object_id", "method", "tainted?", 
"is_a?", "instance_variable_defined?", "instance_variable_get", 
"pretty_inspect", "instance_variable_set", "hash", "display", "send", 
"private_methods", "enum_for", "equal?", "com", "to_java", "type", 
"instance_of?", "id", "taint", "class", "java_annotation", 
"instance_variables", "org", "__send__", "protected_methods", "__id__", 
"java_implements", "tap", "frozen?", "java", "instance_eval", "java_package", 
"untaint", "java_name", "to_enum", "singleton_methods", "eql?", 
"instance_exec", "kind_of?", "java_require", "javax", "const_lookup", 
"public_methods"]
to include "prot"
/opt/work/rubyspec.git/library/delegate/delegate_class/instance_methods_spec.rb:16
/opt/work/rubyspec.git/library/delegate/delegate_class/instance_methods_spec.rb:4
/opt/work/rubyspec.git/library/delegate/delegate_class/instance_methods_spec.rb:56:in
 `load'
/opt/work/mspec.git/bin/mspec-ci:8

3)
DelegateClass.protected_instance_methods includes the protected methods of the 
delegated class FAILED
Expected ["extra_protected"] to include "prot"
/opt/work/rubyspec.git/library/delegate/delegate_class/protected_instance_methods_spec.rb:16
/opt/work/rubyspec.git/library/delegate/delegate_class/protected_instance_methods_spec.rb:4
/opt/work/rubyspec.git/library/delegate/delegate_class/protected_instance_methods_spec.rb:56:in
 `load'
/opt/work/mspec.git/bin/mspec-ci:8

4)
Delegator#eql? is delegated FAILED
Expected false
 to equal :foo

/opt/work/rubyspec.git/library/delegate/delegator/eql_spec.rb:9
/opt/work/rubyspec.git/library/delegate/delegator/eql_spec.rb:3
/opt/work/rubyspec.git/library/delegate/delegator/eql_spec.rb:56:in `load'
/opt/work/mspec.git/bin/mspec-ci:8

5)
An exception occurred during: Mock.verify_count
Delegator#eql? is delegated FAILED
Mock 'base' expected to receive 'eql?' exactly 1 times but received it 0 times
/opt/work/rubyspec.git/library/delegate/delegator/eql_spec.rb:3
/opt/work/rubyspec.git/library/delegate/delegator/eql_spec.rb:56:in `load'
/opt/work/mspec.git/bin/mspec-ci:8

6)
Delegator when frozen is not writeable FAILED
Expected RuntimeError but no exception was raised
/opt/work/rubyspec.git/library/delegate/delegator/frozen_spec.rb:22
/opt/work/rubyspec.git/library/delegate/delegator/frozen_spec.rb:4
/opt/work/rubyspec.git/library/delegate/delegator/frozen_spec.rb:56:in `load'
/opt/work/mspec.git/bin/mspec-ci:8

7)
Delegator#hash is delegated FAILED
Expected 11240282
 to equal 42

/opt/work/rubyspec.git/library/delegate/delegator/hash_spec.rb:9
/opt/work/rubyspec.git/library/delegate/delegator/hash_spec.rb:3
/opt/work/rubyspec.git/library/delegate/delegator/hash_spec.rb:56:in `load'
/opt/work/mspec.git/bin/mspec-ci:8

8)
An exception occurred during: Mock.verify_count
Delegator#hash is delegated FAILED
Mock 'base' expected to receive 'hash' exactly 1 times but received it 0 times
/opt/work/rubyspec.git/library/delegate/delegator/hash_spec.rb:3
/opt/work/rubyspec.git/library/delegate/delegator/hash_spec.rb:56:in `load'
/opt/work/mspec.git/bin/mspec-ci:8

9)
SimpleDelegator can be marshalled with its instance variables intact FAILED
Expected nil
 to equal "bar"

/opt/work/rubyspec.git/library/delegate/delegator/marshal_spec.rb:20
/opt/work/rubyspec.git/library/delegate/delegator/marshal_spec.rb:4
/opt/work/rubyspec.git/library/delegate/delegator/marshal_spec.rb:56:in `load'
/opt/work/mspec.git/bin/mspec-ci:8

10)
Delegator#protected_methods includes protected methods of the delegate object 
FAILED
Expected ["extra_protected"] to include "prot"
/opt/work/rubyspec.git/library/delegate/delegator/protected_methods_spec.rb:14
/opt/work/rubyspec.git/library/delegate/delegator/protected_methods_spec.rb:4
/opt/work/rubyspec.git/library/delegate/delegator/protected_methods_spec.rb:56:in
 `load'
/opt/work/mspec.git/bin/mspec-ci:8

11)
SimpleDelegator.new forwards private method calls made via send or __send__ 
ERROR
NoMethodError: undefined method `priv' for #<DelegateSpecs::Simple:0x1d31859>
/opt/work/jruby.git/lib/ruby/1.8/delegate.rb:178:in `method_missing'
/opt/work/rubyspec.git/library/delegate/delegator/send_spec.rb:25
/opt/work/rubyspec.git/library/delegate/delegator/send_spec.rb:4
/opt/work/rubyspec.git/library/delegate/delegator/send_spec.rb:56:in `load'
/opt/work/mspec.git/bin/mspec-ci:8

Finished in 0.972000 seconds

23 files, 63 examples, 94 expectations, 9 failures, 2 errors
{noformat}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to