search for: magic_column

Displaying 2 results from an estimated 2 matches for "magic_column".

2009 Feb 09
3
RSpec Testing ActiveRecord config dependency.
...# 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 columns" do before(:al...
2010 Nov 15
0
Problem testing Authlogic UserSession
...ror: undefined method `remote_ip'' for nil:NilClass from /Users/martin/.rvm/gems/ruby-1.8.7-p302 at pta3/gems/ activesupport-3.0.1/lib/active_support/whiny_nil.rb:48:in `method_missing'' from /Users/martin/.rvm/gems/ruby-1.8.7-p302 at pta3/gems/ authlogic-2.1.6/lib/authlogic/session/magic_columns.rb:61:in `update_info'' from /Users/martin/.rvm/gems/ruby-1.8.7-p302 at pta3/gems/ activesupport-3.0.1/lib/active_support/callbacks.rb:414:in `_run_before_save_callbacks'' from /Users/martin/.rvm/gems/ruby-1.8.7-p302 at pta3/gems/ activesupport-3.0.1/lib/active_support/callbacks.rb...