diff options
author | Carl Lerche <carllerche@mac.com> | 2010-03-12 17:31:45 -0800 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-03-12 17:31:45 -0800 |
commit | a33ab1b34e74c3b1d6f3bae4a2477527e5f8ca55 (patch) | |
tree | c897dda0f47916c96a061ffb6fdd958555613026 /spec/algebra | |
parent | c2f9f707fc56ca610fb1706886b3111dfe1d286f (diff) | |
download | rails-a33ab1b34e74c3b1d6f3bae4a2477527e5f8ca55.tar.gz rails-a33ab1b34e74c3b1d6f3bae4a2477527e5f8ca55.tar.bz2 rails-a33ab1b34e74c3b1d6f3bae4a2477527e5f8ca55.zip |
Move the relation "integration" specs to specs/relations
Diffstat (limited to 'spec/algebra')
-rw-r--r-- | spec/algebra/integration/basic_spec.rb | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/spec/algebra/integration/basic_spec.rb b/spec/algebra/integration/basic_spec.rb deleted file mode 100644 index ae9da3a037..0000000000 --- a/spec/algebra/integration/basic_spec.rb +++ /dev/null @@ -1,31 +0,0 @@ -require 'spec_helper' - -module Arel - describe "Relation" do - before :all do - @engine = Testing::Engine.new - @relation = Model.build do |r| - r.engine @engine - - r.attribute :id, Attributes::Integer - r.attribute :name, Attributes::String - r.attribute :age, Attributes::Integer - end - end - - describe "..." do - before :all do - @expected = (1..20).map { |i| @relation.insert([i, nil, 2 * i]) } - end - - it_should_behave_like 'A Relation' - end - - describe "#insert" do - it "inserts the row into the engine" do - @relation.insert([1, 'Foo', 10]) - @engine.rows.should == [[1, 'Foo', 10]] - end - end - end -end
\ No newline at end of file |