Created
April 27, 2009 16:33
-
-
Save aslakhellesoy/102586 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
After do | |
MVOR.Postage.threshold = BigDecimal.new('6.99') | |
MVOR.Postage.rate = BigDecimal.new('30.00') | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module MVOR | |
module Postage | |
class << self | |
attr_accessor :threshold | |
attr_accessor :rate | |
end | |
self.threshold = BigDecimal.new('6.99') | |
self.rate = BigDecimal.new('30.00') | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Given /the postage threshold is (.+)/ do |t| | |
MVOR::Postage.threshold = BigDeimal.new(t) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment