flexmock
flexmock copied to clipboard
Flexible mocking for Ruby testing
As this repo is not repo for https://rubygems.org/gems/flexmock any more, I want you to change the description of this repo to link to correct one: https://github.com/doudou/flexmock Because of preventing people's...
`tags.rake` file has shebang (`#!/usr/bin/env ruby`). If we would run like this `./tags.rake`, the shebang is needed. However if not, it might be better that the lines are removed. After...
``` a = flexmock 'a' a.should_receive(:foo).with(1).ordered a.should_receive(:foo).with(2).ordered a.should_receive(:foo).with(1).ordered a.foo 1 a.foo 2 a.foo 1 ``` Will fail (@1.3.3). Is it supposed to? I am currently working around this using the...
Running flexmock 1.3.2 & Minitest 5.0.6 ``` ruby require 'minitest/autorun' require 'flexmock/unit_test' class TestFlexMock < Minitest::Test def test_this flexmock() end end ``` results in ``` bash TestFlexMock#test_this: NoMethodError: undefined method...
Running > gem 'minitest' > require 'minitest/autorun' > require 'flexmock' > class TestMergeCommand include FlexMock::TestCase > def test_execute > app = flexmock('app') > app.should_receive(:dummy).once > @model = Array.new > assert_nil(@model.index(app))...
Hi, Seems like https://github.com/jimweirich/flexmock/commit/02c927c0cfc0a9c61126da6b332eac453f34700f disables :allocate for 1.9 ruby for .0.9 version. What's the underlying reason? I'm working on migrating an existing 1.8 codebase to 1.9 and I don't think...
I would expect to be able to define a partial mock (i.e. `flexmock(realobject)`), use the object and then test against what messages were sent to the real object. Here's an...