Sha256: 163e4d7e1ad54ef093a9b755d5b31b159a64f368c2213c6a44a98af658b0bc10

Contents?: true

Size: 845 Bytes

Versions: 3

Compression:

Stored size: 845 Bytes

Contents

begin
  require File.dirname(__FILE__) + '/../../../../spec/spec_helper'
rescue LoadError
  puts "You need to install rspec in your base app"
  exit
end

plugin_spec_dir = File.dirname(__FILE__)
ActiveRecord::Base.logger = Logger.new(plugin_spec_dir + "/debug.log")
config = YAML::load(IO.read(plugin_spec_dir + '/database.yml'))
ActiveRecord::Base.establish_connection(config[ENV['DB'] || 'sqlite3'])
load(plugin_spec_dir + "/schema.rb") if File.exist?(plugin_spec_dir + "/schema.rb")

class OrderFuControl < ActiveRecord::Base
end

ORDER_FU_CONTROLS = [
  {:first_name => 'Adam', :last_name => 'Yevgevi'   },
  {:first_name => 'Clif', :last_name => 'Walters'   },
  {:first_name => 'Adam', :last_name => 'Zentowski' },
  {:first_name => 'Bert', :last_name => 'Xander'    },
]

ORDER_FU_CONTROLS.each { |control| OrderFuControl.create control }

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sprsquish-order_fu-0.1.0 spec/spec_helper.rb
sprsquish-order_fu-0.1.2 spec/spec_helper.rb
sprsquish-order_fu-0.2.0 spec/spec_helper.rb