diff options
author | Bryan Helmkamp <bryan@brynary.com> | 2009-11-09 19:31:53 -0500 |
---|---|---|
committer | Bryan Helmkamp <bryan@brynary.com> | 2009-11-09 19:31:53 -0500 |
commit | 130188e67ce76e4ced60dc0331d2ac5bba6cdb74 (patch) | |
tree | c6f1aa715947b2810a2155e1b7a241e92b5579f8 /spec/arel/algebra/unit/session | |
parent | 976999cb980eb47ac5f297de043e2ed55248c2a5 (diff) | |
download | rails-130188e67ce76e4ced60dc0331d2ac5bba6cdb74.tar.gz rails-130188e67ce76e4ced60dc0331d2ac5bba6cdb74.tar.bz2 rails-130188e67ce76e4ced60dc0331d2ac5bba6cdb74.zip |
Switch from rr to RSpec mocks. rr has issues on 1.9.2pre
Diffstat (limited to 'spec/arel/algebra/unit/session')
-rw-r--r-- | spec/arel/algebra/unit/session/session_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/arel/algebra/unit/session/session_spec.rb b/spec/arel/algebra/unit/session/session_spec.rb index 03aab6a03f..0553a140ec 100644 --- a/spec/arel/algebra/unit/session/session_spec.rb +++ b/spec/arel/algebra/unit/session/session_spec.rb @@ -40,19 +40,19 @@ module Arel describe '#create' do it "executes an insertion on the connection" do - mock(@insert).call + @insert.should_receive(:call) @session.create(@insert) end end describe '#read' do it "executes an selection on the connection" do - mock(@read).call + @read.should_receive(:call) @session.read(@read) end it "is memoized" do - mock(@read).call.once + @read.should_receive(:call).once @session.read(@read) @session.read(@read) end @@ -60,14 +60,14 @@ module Arel describe '#update' do it "executes an update on the connection" do - mock(@update).call + @update.should_receive(:call) @session.update(@update) end end describe '#delete' do it "executes a delete on the connection" do - mock(@delete).call + @delete.should_receive(:call) @session.delete(@delete) end end |