Sha256: 7f66c69ace5a7ca9b4e0a135b6457f4e5aee1673e47886484e331f74deeaee63

Contents?: true

Size: 371 Bytes

Versions: 2

Compression:

Stored size: 371 Bytes

Contents

require 'minitest/autorun'
require 'coder_wally/account'

describe 'Account' do
  it 'creates an account object with dynamic attributes' do
    json_parsed = {'github' => 'gregstewart', 'twitter' => '_greg_stewart_'}

    account = CoderWally::Account.new(json_parsed)

    account.github.must_equal 'gregstewart'
    account.twitter.must_equal '_greg_stewart_'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
coder_wally-0.1.0 test/account_test.rb
coder_wally-0.0.7 test/account_test.rb