Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 7fd83decf8
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (32 sloc) 1.025 kB
require 'rubygems'
require 'test/unit'
require 'mocha'
gem 'activerecord'
gem 'actionpack'
require 'active_record'
require 'action_controller'
require 'action_controller/test_process'
require File.expand_path(File.join(File.dirname(__FILE__), *%w[.. init]))
# setup db
config = YAML::load(IO.read(File.dirname(__FILE__) + '/database.yml'))
ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + "/debug.log")
ActiveRecord::Base.establish_connection(config[ENV['DB'] || 'sqlite3'])
# load schema file
load(File.dirname(__FILE__) + "/schema.rb") if File.exist?(File.dirname(__FILE__) + "/schema.rb")
class MainModel < ActiveRecord::Base
acts_as_wizard :first_page, :second_page, :not_ar, :last_page
end
class FirstPage < ActiveRecord::Base
acts_as_wizard_page :main_model
end
class SecondPage < ActiveRecord::Base
acts_as_wizard_page :main_model
end
class LastPage < ActiveRecord::Base
acts_as_wizard_page :main_model
end
class NotAr
attr_accessor :attribute
end
class EmptyModel < ActiveRecord::Base
end
Jump to Line
Something went wrong with that request. Please try again.