Skip to content

Instantly share code, notes, and snippets.

@aslakhellesoy
Created April 27, 2009 16:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aslakhellesoy/102586 to your computer and use it in GitHub Desktop.
Save aslakhellesoy/102586 to your computer and use it in GitHub Desktop.
After do
MVOR.Postage.threshold = BigDecimal.new('6.99')
MVOR.Postage.rate = BigDecimal.new('30.00')
end
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
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