Sha256: e700bc891a064f5940f2ad8c4dd7e2af82dfe1f3de1ea0576fb223ead5d1a04d
Contents?: true
Size: 684 Bytes
Versions: 3
Compression:
Stored size: 684 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe "Group Helper" do before(:each) do clean_database! end describe "grouped_column_names_for method" do before(:each) do @taggable = TaggableModel.new(:name => "Bob Jones") end it "should return all column names joined for Tag GROUP clause" do @taggable.grouped_column_names_for(Tag).should == "tags.id, tags.name" end it "should return all column names joined for TaggableModel GROUP clause" do @taggable.grouped_column_names_for(TaggableModel).should == "taggable_models.id, taggable_models.name, taggable_models.type, taggable_models.cached_tag_list" end end end
Version data entries
3 entries across 3 versions & 1 rubygems