mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
don't use a constant
This commit is contained in:
parent
54a7fe2017
commit
ad5f225abb
1 changed files with 4 additions and 2 deletions
|
@ -85,7 +85,8 @@ module Fog
|
|||
module Mock
|
||||
include Common
|
||||
|
||||
DATA = {
|
||||
def self.mock_data
|
||||
{
|
||||
:organizations =>
|
||||
[
|
||||
{
|
||||
|
@ -167,6 +168,7 @@ module Fog
|
|||
}
|
||||
]
|
||||
}
|
||||
end
|
||||
|
||||
def self.error_headers
|
||||
{"X-Powered-By"=>"ASP.NET",
|
||||
|
@ -199,7 +201,7 @@ module Fog
|
|||
self.class.instance_eval '
|
||||
def self.data
|
||||
@data ||= Hash.new do |hash, key|
|
||||
hash[key] = Fog::Terremark::Shared::Mock::DATA
|
||||
hash[key] = Fog::Terremark::Shared::Mock.mock_data
|
||||
end
|
||||
end'
|
||||
self.class.instance_eval '
|
||||
|
|
Loading…
Add table
Reference in a new issue