CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sat, 16 Aug 2025 04:29:49 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20090608023948
location: https://web.archive.org/web/20090608023948/https://github.com/mislav/rspec-rails-mocha/tree
server-timing: captures_list;dur=0.591060, exclusion.robots;dur=0.024932, exclusion.robots.policy;dur=0.012625, esindex;dur=0.014909, cdx.remote;dur=40.247545, LoadShardBlock;dur=199.173728, PetaboxLoader3.datanode;dur=80.536850, PetaboxLoader3.resolve;dur=29.951064
x-app-server: wwwb-app214
x-ts: 302
x-tr: 268
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app214; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 301
server: nginx
date: Sat, 16 Aug 2025 04:29:50 GMT
content-type: text/html; charset=utf-8
content-length: 120
x-archive-orig-server: nginx/0.6.31
x-archive-orig-date: Mon, 08 Jun 2009 02:39:47 GMT
x-archive-orig-connection: close
x-archive-orig-status: 301 Moved Permanently
location: https://web.archive.org/web/20090608023948/https://github.com/mislav/rspec-rails-mocha/tree/master
x-archive-orig-x-runtime: 42ms
x-archive-orig-cache-control: no-cache
x-archive-orig-content-length: 120
cache-control: max-age=1800
memento-datetime: Mon, 08 Jun 2009 02:39:48 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Thu, 16 Oct 2008 00:03:41 GMT", ; rel="prev memento"; datetime="Thu, 16 Oct 2008 00:03:41 GMT", ; rel="memento"; datetime="Mon, 08 Jun 2009 02:39:48 GMT", ; rel="last memento"; datetime="Mon, 08 Jun 2009 02:39:48 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_10_20090608014116_crawl101-c/52_10_20090608023909_crawl101.arc.gz
server-timing: captures_list;dur=0.543164, exclusion.robots;dur=0.020821, exclusion.robots.policy;dur=0.011144, esindex;dur=0.012580, cdx.remote;dur=42.206775, LoadShardBlock;dur=234.838713, PetaboxLoader3.datanode;dur=212.255884, load_resource;dur=187.204251, PetaboxLoader3.resolve;dur=124.845115
x-app-server: wwwb-app214
x-ts: 301
x-tr: 490
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Sat, 16 Aug 2025 04:29:50 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.6.31
x-archive-orig-date: Mon, 08 Jun 2009 02:39:48 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-x-runtime: 325ms
x-archive-orig-etag: "b5122e6b8c340cf1ddb39d4db14462aa"
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-orig-content-length: 18028
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Mon, 08 Jun 2009 02:39:48 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Wed, 15 Oct 2008 07:46:50 GMT", ; rel="prev memento"; datetime="Sat, 06 Jun 2009 13:55:51 GMT", ; rel="memento"; datetime="Mon, 08 Jun 2009 02:39:48 GMT", ; rel="next memento"; datetime="Fri, 14 Aug 2009 06:03:13 GMT", ; rel="last memento"; datetime="Fri, 14 Aug 2009 06:03:13 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_10_20090608014116_crawl101-c/52_10_20090608023909_crawl101.arc.gz
server-timing: captures_list;dur=0.689792, exclusion.robots;dur=0.028361, exclusion.robots.policy;dur=0.011092, esindex;dur=0.015480, cdx.remote;dur=21.474952, LoadShardBlock;dur=212.894397, PetaboxLoader3.datanode;dur=205.894727, PetaboxLoader3.resolve;dur=118.117016, load_resource;dur=178.829016
x-app-server: wwwb-app214
x-ts: 200
x-tr: 481
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
mislav's rspec-rails-mocha at master - GitHub
This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (

This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (

Description: | Ports functionality of mock_model and stub_model from rspec-rails for developers using Mocha. |
Homepage: | https://rspec.lighthouseapp.com/projects/5645/tickets/275-mock_model-is-unusable-when-using-mocha |
Clone URL: |
git://github.com/mislav/rspec-rails-mocha.git
Give this clone URL to anyone.
git clone git://github.com/mislav/rspec-rails-mocha.git
|
name | age | message | |
---|---|---|---|
![]() |
README.markdown | Thu Feb 05 16:35:40 -0800 2009 | Brought the plugin up to date with rspec 1.1.12. [steveluscher] |
![]() |
init.rb | Thu Aug 28 18:34:15 -0700 2008 | import [mislav] |
![]() |
lib/ | Thu Feb 05 16:35:40 -0800 2009 | Brought the plugin up to date with rspec 1.1.12. [steveluscher] |
![]() |
spec/ | Thu Feb 05 16:35:40 -0800 2009 | Brought the plugin up to date with rspec 1.1.12. [steveluscher] |
RSpec-Rails Mocha plugin
This brings functionality of mock_model
and stub_model
from rspec-rails to those using Mocha.
require 'rubygems'
gem 'rspec', '1.1.12'
require 'spec'
require 'spec/rails'
require 'rspec_rails_mocha'
describe "Mocha plugin" do
it "#mock_model should use given ID" do
person = mock_model(Person, :id => 66)
person.should_not be_new_record
person.id.should == 66
end
end
This feature is coming soon. Sit tight!