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/engines/sql/unit/relations/table_spec.rb | |
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/engines/sql/unit/relations/table_spec.rb')
-rw-r--r-- | spec/arel/engines/sql/unit/relations/table_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/arel/engines/sql/unit/relations/table_spec.rb b/spec/arel/engines/sql/unit/relations/table_spec.rb index 26b9364929..92e4549028 100644 --- a/spec/arel/engines/sql/unit/relations/table_spec.rb +++ b/spec/arel/engines/sql/unit/relations/table_spec.rb @@ -42,8 +42,8 @@ module Arel describe '#reset' do it "reloads columns from the database" do - lambda { stub(@relation.engine).columns { [] } }.should_not change { @relation.attributes } - lambda { @relation.reset }.should change { @relation.attributes } + lambda { @relation.engine.stub!(:columns => []) }.should_not change { @relation.attributes } + lambda { @relation.reset }.should change { @relation.attributes } end end end |