Permalink
Browse files

Don't rely on Ghost constant already existing for tests

  • Loading branch information...
1 parent e728600 commit 265832f5c38ecf478d48522328259b6fbd6ade16 @bjeanes committed Sep 4, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 lib/ghost/store.rb
View
@@ -1,10 +1,12 @@
-class << Ghost
- attr_accessor :store
+module Ghost
+ class << self
+ attr_accessor :store
+ end
end
+
require 'ghost/store/hosts_file_store'
Ghost.store = Ghost::Store::HostsFileStore.new
# TODO: only load on OS X and make it default when compatible
require 'ghost/store/dscl_store'
-

0 comments on commit 265832f

Please sign in to comment.