Use Rails fixtures as mocked model objects without database access
Test spy extension to rspec-mocks
MockChargebee is a drop in mocking library for testing with Chargebee.
A mock for the svn commandline to help tool development
Mock of Norikra listener to show how to make listener by yourself
Create mock image and mp3 files
Basic series of objects designed to allow you to arbitrarily assign and access properties, for use in conjunction with typical isolated testing style.
Cassandra mocking framework intended to replace having a full blown Cassandra running for a unit testing environment. Aims to be a fast and accurate representation of running CQL 3 against the Ruby Cassandra driver
Declarative partial mocking for ActiveRecord
Mocking and stubbing library with JMock/SchMock syntax, which allows mocking and stubbing of methods on real (non-mock) classes.
A cleaner and DRYer alternative to mocking and stubbing with RSpec, using Arrange-Act-Assert syntax
Httpotemkin provides tools to mock HTTP servers for system-level tests.
HTTP server mocking tool
Mock ActiveRecord tables to test concerns and other code.
This gem is used to mock the communication part of the facebook graph api.
A tool for verifying mock object assumptions
Mock iTunes receipt validation responses for testing
Argument matcher for asserting AR object equality.
Fake client for Tire to allows tests without running elastic search.
Add-on for RSpec's 'test double' framework, with support for stubbing and mocking within child processes
Automatically track which assumptions you've made in the form or mocks and stubs actually work.
This gem is useful for development where a mock rest api server is required and with frank UI test automation.
Perhaps the lightest mocking strategy available.
This project aims to make interop between IronRuby objects and .NET objects easier. The idea is that it integrates nicely with bacon and later rspec and that it transparently lets you mock ironruby ojbects as well as CLR objects/interfaces. Caricature handles interfaces, interface inheritance, CLR objects, CLR object instances, Ruby classes and instances of Ruby classes.
Tool for mocking web requests
Easy API mocking with Crow!
Extension to mock_redis enabling lua execution via rufus-lua
A library for generating webmock mocks with ServiceContract schemas
Point your application to mobe-server to mock out the back end. This is ideal for unit testing the front end of your application using a tool like Selenium.
Lets you select different Redis instances/databases easily. This way, you get logical grouping of different Redis datasets. Also supports mocking in test mode (via mock_redis gem).
Test::Unit::Mock is a class for conveniently building mock objects in Test::Unit test cases.
See summary
A Ruby HTTP Mock Server based on Sinatra
Mocking library for Bunny
resque_unit(without mock)
a simple API mock server.
Adds a should_receive! method to rspec that actually calls the method instead of behaving like a true mock
Mocking and stubbing library with JMock/SchMock syntax, which allows mocking and stubbing of methods on real (non-mock) classes.
After reading Practical Object-Oriented Design in Ruby: An Agile Primer by Sandi Metz, I wanted an easy way to put off making decisions about related objects during the early phases of a project. This is what I came up with for that.
Name changed to minitest-rspec_mocks. Please grab the latest version under that name.
A library for building mock APIs in tests
Generate executable with predefined inputs/outputs
Mimics net-http-pipeline's behaviour within WebMock's Net::HTTP implementation, allowing you to mock and test your pipelined HTTP calls.
Remember when RSpec had stub_chain? They removed it for good reasons but sometimes you just need it. Well, here it is, a proxy object. It doesn't actually mock anything for you (the name is just catchy) so you need to do that. But that actually comes with a lot of benefits: 1) It's compatable with any testing framework 2) You can use it for purposes other than testing, e.g. prototyping, code stubs 3) Flexibility in how you use it without overloading the number of methods you have to remember Here's an example usage: let(:model_proxy) do MockProxy.new(email_client: { create_email: { receive: proc {} } }) end before { allow(Model).to receive(:new).and_return model_proxy } it 'should call receive' do proc = MockProxy.get(model_proxy, 'email_client.create_email.receive') expect(proc).to receive(:call) run_system_under_test MockProxy.update(mock_proxy, 'email_client.create_email.validate!') { true } MockProxy.observe(mock_proxy, 'email_client.create_email.send') do |to| expect(to).to eq 'stop@emailing.me' end run_system_under_test2 end As you can see, the proc - which ends the proxy by calling the proc - can be used for anything. You can spy on the call count and arguments, mock methods, or just stub out code you don't want executed. Because it doesn't make any assumptions, it becomes very flexible. Simple, yet powerful, it's uses are infinite. Enjoy
clockwork provides a cron-like utility for ruby. This gem adds the possibility to create integration tests for these tasks
This gem is used to mock the communication part of the twitter api.
Document HTTParty responses for mocking
Enables AAA testing for rspec-mock
Lazy Mocks just respond to anything you throw at them.
This gem will mock the oauth of facebook using facemock.