Sha256: 76c5658e923e76dda71118a515dabd41dba29ca9d3af80d5531c47ddb9c7da3c
Contents?: true
Size: 325 Bytes
Versions: 5
Compression:
Stored size: 325 Bytes
Contents
# encoding: UTF-8 require 'spec_helper' describe ArelHelpers::ArelTable do it "should add the [] function to the model and allow attribute access" do Post[:id].tap do |post_id| post_id.should be_a(Arel::Attribute) post_id.name.should == :id post_id.relation.name.should == "posts" end end end
Version data entries
5 entries across 5 versions & 1 rubygems