To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!More about adding a collaborator
mock with flexmock
As an RSpec user who likes to mock
I want to be able to use flexmock
- Mock with flexmock
a file named "flexmock_example_spec.rb" with:
RSpec.configure do |config| config.mock_framework = :flexmock end describe "plugging in flexmock" do it "allows flexmock to be used" do target = Object.new flexmock(target).should_receive(:foo).once target.foo end end
- I run "rspec ./flexmock_example_spec.rb"
- the examples should all pass
- the exit status should be 0
Last published over 6 years ago by dchelimsky.
RSpec Core settings