trying to reproduce a reported problem with rails v3.1.0.rc4
Ruby JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
app
config
db
doc
lib/tasks
log
public
script
test
vendor
.gitignore
Gemfile
Gemfile.lock
README
Rakefile
config.ru

README

Attempting to reproduce Mocha problem [1] reported with Rails v3.1.0.rc4 :-

    $ ruby -v
    ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.7.0]

    $ bundle exec rake MOCHA_OPTIONS=debug
    Detected MiniTest version: 1.6.0
    Monkey patching MiniTest >= v1.4.2 and <= v1.7.2
    Loaded suite /users/jamesmead/Sites/rails-mocha/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/rake_test_loader
    Started
    F
    Finished in 0.015588 seconds.

      1) Failure:
    test_mocha(WidgetTest) [/users/jamesmead/Sites/rails-mocha/test/unit/widget_test.rb:6]:
    not all expectations were satisfied
    unsatisfied expectations:
    - expected exactly once, not yet invoked: #<Mock:m>.foo(any_parameters)


    1 tests, 1 assertions, 1 failures, 0 errors, 0 skips

    Test run options: --seed 56104
    Errors running test:units!

[1] http://groups.google.com/group/mocha-developer/browse_thread/thread/a151451e62115d75