Displaying 1 result from an estimated 1 matches for "hll_audit_columns".
2009 Feb 09
3
RSpec Testing ActiveRecord config dependency.
...string :description
# these are Rails'' own magic columns
...
# these are our custom magic columns
...
end
@my_mage = Magik.new
@my_mage.save!
end
it "should set each custom magic column present" do
(Magik.column_names & ActiveRecord::Base::HLL_AUDIT_COLUMNS).each do
|magic_column|
@my_mage.read_attribute(magic_column).should_not be_nil
end
end
I can simply create duplicate separate specification file and set the
configuration value appropriately in each. Something along the lines of:
describe "Builds a Model with custom magic column...