Sha256: 6e758662f23dfe8095cfc97f8dff7e02abf58b5aae250293ef05532dacc505ee
Contents?: true
Size: 566 Bytes
Versions: 6
Compression:
Stored size: 566 Bytes
Contents
require File.expand_path('../../test_helper.rb', __FILE__) class TestRockstar < Test::Unit::TestCase test 'should accept strings' do Rockstar.lastfm = {"api_key" => "1234567890", "api_secret" => "0987654321"} assert_equal(Rockstar.lastfm_api_key, "1234567890") assert_equal(Rockstar.lastfm_api_secret, "0987654321") end test 'should accept symbols' do Rockstar.lastfm = {:api_key => "1234567890", :api_secret => "0987654321"} assert_equal(Rockstar.lastfm_api_key, "1234567890") assert_equal(Rockstar.lastfm_api_secret, "0987654321") end end
Version data entries
6 entries across 6 versions & 2 rubygems