Created
April 7, 2018 21:43
-
-
Save corroded/9d6074ca762c28750d1afccaf4f43a1e to your computer and use it in GitHub Desktop.
Covetous example
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
describe 'when receiving the hero details' do | |
it 'should have the top level keys as methods' do | |
top_level_keys = %w{id name gender level paragonLevel hardcore skills items followers stats kills progress dead last-updated} | |
top_level_keys.each do |tl_key| | |
@my_hero.send(tl_key).must_equal @my_hero.response[tl_key.camelize(:lower)] | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment