Skip to content

Commit

Permalink
test_mode setting env files
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Springett committed May 7, 2011
1 parent 2b973f3 commit 0968bf7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/worldpay-rails.rb
Expand Up @@ -6,7 +6,12 @@ def self.uri
end

def self.test?
not Worldpay.in_production?
@@test_mode || not Worldpay.in_production?
end

# can set this in your environment files
def self.test_mode=(value = false)
@@test_mode = value
end

def self.in_production?
Expand Down

0 comments on commit 0968bf7

Please sign in to comment.