Displaying 1 result from an estimated 1 matches for "my_mage".
Did you mean:
my_image
2009 Feb 09
3
RSpec Testing ActiveRecord config dependency.
...sting specification looks somewhat
like this:
describe "Builds a Model with custom magic columns" do
before(:all) do
build_model :magiks do
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 duplicat...