Sha256: 5eaa5bdf07e9b522fcf7ecf7c756c19e7ded9c2ce3bf3630e39b09227dcd4ebd
Contents?: true
Size: 539 Bytes
Versions: 1
Compression:
Stored size: 539 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe Netzke::ActiveRecord::Attributes do it "should return Netzke attributes in natural order" do User.send(:netzke_attrs_in_natural_order).map{ |a| a[:name] }.should == %w(id first_name last_name role__name created_at updated_at) end it "should return exposed Netzke attributes" do class UserExt < User netzke_expose_attributes :first_name, :created_at end UserExt.netzke_attributes.map{ |a| a[:name] }.should == %w(id first_name created_at) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
netzke-basepack-0.6.0 | spec/active_record/attributes_spec.rb |