Sha256: 2a8002b70885665f36c35764ad154ba82a94e713c214d7f4736d81fbe736306f
Contents?: true
Size: 346 Bytes
Versions: 9
Compression:
Stored size: 346 Bytes
Contents
require 'spec_helper' describe EdgeRider::ToSql do describe '#to_sql' do it "should return the SQL the scope would produce" do scope = Forum.scoped(:conditions => { :name => 'Name' }) scope.to_sql.should =~ EdgeRider::Development.selects_star_with_conditions_pattern('forums', "`forums`.`name` = 'Name'") end end end
Version data entries
9 entries across 9 versions & 1 rubygems