mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
10 lines
265 B
Ruby
10 lines
265 B
Ruby
require File.join(File.dirname(__FILE__), '..', 'spec_helper')
|
|
|
|
describe TableRelation, '#to_sql' do
|
|
it "returns a simple SELECT query" do
|
|
TableRelation.new(:users).to_sql.should == SelectBuilder.new do |s|
|
|
select :*
|
|
from :users
|
|
end
|
|
end
|
|
end
|