test/test_helper.rb in cockpit-0.0.1.7 vs test/test_helper.rb in cockpit-0.1.1
- old
+ new
@@ -8,25 +8,27 @@
require 'active_record/fixtures'
require 'shoulda'
require 'shoulda/active_record'
require File.dirname(__FILE__) + '/lib/database'
-
require File.expand_path(File.join(File.dirname(__FILE__), '/../lib/cockpit'))
-
require File.dirname(__FILE__) + '/lib/user'
+class Object
+ include Cockpit
+end
+
ActiveRecord::Base.class_eval do
def self.detonate
all.map(&:destroy)
end
end
ActiveSupport::TestCase.class_eval do
def load_settings
- Settings do
+ Cockpit do
asset :title => "Asset (and related) Settings" do
thumb do
width 100, :tip => "Thumb's width"
height 100, :tip => "Thumb's height"
end
@@ -78,13 +80,9 @@
end
social do
facebook "http://facebook.com/viatropos"
twitter "http://twitter.com/viatropos"
email "lancejpollard@gmail.com"
- end
- s3 do
- key "my_key"
- secret "my_secret"
end
end
end
end
\ No newline at end of file