Skip to content
Browse files

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

…ngly

darcs-hash:20051017224143-9ce57-787aebfc21d209b92e321997f2d5e92a23d0a9f3.gz
  • Loading branch information...
1 parent 196905e commit d9192b07739013ff17be44849b7fe45321a8b0a9 Steve committed Oct 17, 2005
Showing with 8 additions and 7 deletions.
  1. +4 −4 rmock.rb → lib/mockr.rb
  2. +4 −3 rmock_tests.rb → test/mockr_tests.rb
View
8 rmock.rb → lib/mockr.rb
@@ -1,12 +1,12 @@
-# = RMock - A Mock Object library inspired by JMock
+# = Mockr - A Mock Object library inspired by JMock
#
# Copyright (c) 2005 Steve Purcell
# Licenced under the same terms as Ruby itself
#
# == 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

0 comments on commit d9192b0

Please sign in to comment.
Something went wrong with that request. Please try again.