This file contains hidden or 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
FIREFOX_FIXTURES = [ | |
{ | |
browser: 'Firefox', | |
gecko_version: '20101203', | |
os: 'Intel Mac OS X 10.6', | |
platform: 'Macintosh', | |
raw: 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', | |
version: '3.6.13' | |
}, | |
{ |
Thanks to this week's contributors to thoughtbot projects.
Test your Ruby gem against different versions of its dependencies.
This file contains hidden or 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
class Customer | |
def initialize(attrs = {}) | |
@id = attrs[:id] | |
@country = attrs[:country] | |
end | |
def tax_code | |
TaxCodes[@country].call(@id) | |
rescue | |
raise "Tax codes for #{@country} not supported" |
OlderNewer