mediashelf/active_fedora — pull request #14 by cbeer (2011-12-12 22:34:35+00:00)
Title: Rspec 2.x

Upgrade to RSpec 2.x. I'm still getting one test failure, maybe one of you will recognize it and figure out what to do:

Failures:

1) ActiveFedora::Base has_metadata :control_group => 'R' should work with a valid :url option
Failure/Error: @n = MoreFooHistory.new
Mocha::ExpectationError:
unexpected invocation: #.[]('objects/27/datastreams/externalUrl?format=xml')
satisfied expectations:
- allowed any number of times, not yet invoked: #.[]()
- allowed any number of times, not yet invoked: #.[]()
- allowed any number of times, not yet invoked: #.[]('objects/27')
- allowed any number of times, invoked twice: #.[]('objects/27/datastreams/RELS-EXT?format=xml')
- allowed any number of times, invoked once: #.[]('objects/27/datastreams/withText2?format=xml')
- allowed any number of times, invoked once: #.[]('objects/27/datastreams/withText?format=xml')
- allowed any number of times, invoked once: #.[]('objects/27/datastreams/someData?format=xml')
- allowed any number of times, invoked twice: #.[]('objects/27/datastreams?format=xml')
- allowed any number of times, invoked 7 times: #.get(any_parameters)
- allowed any number of times, invoked 8 times: #.client(any_parameters)
- allowed any number of times, invoked 3 times: #.nextid(any_parameters)
- allowed any number of times, not yet invoked: #.post(any_parameters)
- allowed any number of times, not yet invoked: #.post(any_parameters)
- allowed any number of times, not yet invoked: #.get(any_parameters)
- allowed any number of times, not yet invoked: #.post(any_parameters)
- allowed any number of times, not yet invoked: #.get(any_parameters)
# (eval):3:in `controlGroup'
# (eval):7:in `controlGroup='
# ./lib/active_fedora/base.rb:1009:in `configure_defined_datastreams'
# ./lib/active_fedora/base.rb:1002:in `each'
# ./lib/active_fedora/base.rb:1002:in `configure_defined_datastreams'
# ./lib/active_fedora/base.rb:94:in `initialize'
# ./spec/unit/base_spec.rb:215:in `new'
# ./spec/unit/base_spec.rb:215