diff options
author | Bryan Helmkamp <bryan@brynary.com> | 2009-05-17 16:20:40 -0400 |
---|---|---|
committer | Bryan Helmkamp <bryan@brynary.com> | 2009-05-17 16:20:40 -0400 |
commit | dc7b51883b1cc8ad7e525b7315fb575ae77a5b3d (patch) | |
tree | 97f5e4d55baa45f9805eb36a2196bcc12094ae3a /spec/arel/algebra/unit/session | |
parent | 19b2af181009acfcb24d156ca350c148630e6787 (diff) | |
download | rails-dc7b51883b1cc8ad7e525b7315fb575ae77a5b3d.tar.gz rails-dc7b51883b1cc8ad7e525b7315fb575ae77a5b3d.tar.bz2 rails-dc7b51883b1cc8ad7e525b7315fb575ae77a5b3d.zip |
Whitespace
Diffstat (limited to 'spec/arel/algebra/unit/session')
-rw-r--r-- | spec/arel/algebra/unit/session/session_spec.rb | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/spec/arel/algebra/unit/session/session_spec.rb b/spec/arel/algebra/unit/session/session_spec.rb index e17b5d638a..ca0a43f278 100644 --- a/spec/arel/algebra/unit/session/session_spec.rb +++ b/spec/arel/algebra/unit/session/session_spec.rb @@ -6,7 +6,7 @@ module Arel @relation = Table.new(:users) @session = Session.new end - + describe '::start' do describe '::instance' do it "it is a singleton within the started session" do @@ -23,13 +23,13 @@ module Arel end end end - + it "manufactures new sessions outside of the started session" do Session.new.should_not == Session.new end end end - + describe Session::CRUD do before do @insert = Insert.new(@relation, @relation[:name] => 'nick') @@ -37,34 +37,34 @@ module Arel @delete = Deletion.new(@relation) @read = @relation end - + describe '#create' do it "executes an insertion on the connection" do mock(@insert).call @session.create(@insert) end end - + describe '#read' do it "executes an selection on the connection" do mock(@read).call @session.read(@read) end - + it "is memoized" do mock(@read).call.once @session.read(@read) @session.read(@read) end end - + describe '#update' do it "executes an update on the connection" do mock(@update).call @session.update(@update) end end - + describe '#delete' do it "executes a delete on the connection" do mock(@delete).call @@ -72,13 +72,13 @@ module Arel end end end - + describe 'Transactions' do describe '#begin' do end - + describe '#end' do end end end -end
\ No newline at end of file +end |