Ruby Metaprogramming
- by Veerendra Manikonda
I am having a method which returns the price of a given symbol and i am writing a test for that method.
This is my test
def setup
@asset = NetAssetValue.new
end
def test_retrieve_price_for_symbol_YHOO
assert_equal(33.987, @asset.retrieve_price_for_a_symbol('YHOO'))
end
def test_retrive_price_for_YHOO
def…