Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Renamed project from RMock to Mockr, and changed module names accordi…

…ngly

darcs-hash:20051017224143-9ce57-787aebfc21d209b92e321997f2d5e92a23d0a9f3.gz
  • Loading branch information...
commit d9192b07739013ff17be44849b7fe45321a8b0a9 1 parent 196905e
Steve authored
View
8 rmock.rb → lib/mockr.rb
@@ -1,4 +1,4 @@
-# = RMock - A Mock Object library inspired by JMock
+# = Mockr - A Mock Object library inspired by JMock
#
# Copyright (c) 2005 Steve Purcell
@@ -6,7 +6,7 @@
#
# == Introduction
#
-# An instance of RMock::Mock can be programmed with responses to
+# An instance of Mockr::Mock can be programmed with responses to
# methods calls expected during the course of a unit test. At the
# end of the test, the instance can verify whether its expectations
# were met, signalling a test failure if they were not.
@@ -25,7 +25,7 @@
# class PumpTest < Test::Unit::TestCase
#
# def test_inflates_in_5psi_increments
-# gauge_mock = RMock::Mock.new
+# gauge_mock = Mockr::Mock.new
# gauge_mock.expects.pressure?.as { 95 }
# end
#
@@ -39,7 +39,7 @@
require 'test/unit'
-module RMock
+module Mockr
################################################################################
View
7 rmock_tests.rb → test/mockr_tests.rb
@@ -1,15 +1,16 @@
#!/usr/bin/env ruby
$VERBOSE = true if $0 == __FILE__
+$:.unshift(File.dirname(__FILE__) + "/../lib")
require 'test/unit'
-require 'rmock'
+require 'mockr'
-module RMock::Test
+module Mockr::Test
class MockTest < Test::Unit::TestCase
include ::Test::Unit
- include RMock
+ include Mockr
def test_stub_call_with_no_arguments_returns_nil
mock = Mock.new
Please sign in to comment.
Something went wrong with that request. Please try again.