0.01
No commit activity in last 3 years
No release in over 3 years
A simple mock object library I built on stage at Ancient City Ruby. Do not use in production!
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.3
~> 4.7.0
>= 0
 Project Readme

AncientMock

A simple mock object library that I built on stage at Ancient City Ruby.

Do not use in production! It was an academic exercise meant to teach the basics of building a mock object library.

Installation

# Gemfile
gem 'ancient_mock'

Usage

warehouse = Object.new

# Stub
allow(warhouse).to receive(:full?).and_return(true)
warehouse.full? # => true

# Mock
item_id = 1234
expect(warehouse).to receive(:remove).with(item_id)
# warehouse.remove(1234) must be called

Tests

bundle exec rake