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

Version Path
edge_rider-0.3.1 spec/shared/spec/edge_rider/to_sql_spec.rb
edge_rider-0.3.0 spec/shared/spec/edge_rider/to_sql_spec.rb
edge_rider-0.2.5 spec/shared/spec/edge_rider/to_sql_spec.rb
edge_rider-0.2.4 spec/shared/spec/edge_rider/to_sql_spec.rb
edge_rider-0.2.3 spec/shared/spec/edge_rider/to_sql_spec.rb
edge_rider-0.2.2 spec/shared/spec/edge_rider/to_sql_spec.rb
edge_rider-0.2.1 spec/shared/spec/edge_rider/to_sql_spec.rb
edge_rider-0.2.0 spec/shared/spec/edge_rider/to_sql_spec.rb
edge_rider-0.1.1 spec/shared/spec/edge_rider/to_sql_spec.rb