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 (
| name | age | message | |
|---|---|---|---|
| |
README.markdown | ||
| |
init.rb | ||
| |
lib/ | ||
| |
spec/ |
README.markdown
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.4'
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








