Sha256: e5f76efa932eb9bfc6fd1f0c781eece34454639bb705e6bfdc62c980e7923237

Contents?: true

Size: 325 Bytes

Versions: 21

Compression:

Stored size: 325 Bytes

Contents

class TestUser < Test::Unit::TestCase
  def test_sg_attributes
    params = {
      "name" => "test_user",
      "email" => "test-user@example.com",
      "password" => "passw0rd"
    }

    user = Yao::User.new(params)
    assert_equal(user.name, "test_user")
    assert_equal(user.email, "test-user@example.com")
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
yao-0.7.0 test/yao/resources/test_user.rb
yao-0.6.3 test/yao/resources/test_user.rb
yao-0.6.2 test/yao/resources/test_user.rb
yao-0.6.1 test/yao/resources/test_user.rb
yao-0.6.0 test/yao/resources/test_user.rb
yao-0.5.0 test/yao/resources/test_user.rb
yao-0.4.3 test/yao/resources/test_user.rb
yao-0.4.2 test/yao/resources/test_user.rb
yao-0.4.1 test/yao/resources/test_user.rb
yao-0.4.0 test/yao/resources/test_user.rb
yao-0.3.8 test/yao/resources/test_user.rb
yao-0.3.7 test/yao/resources/test_user.rb
yao-0.3.6 test/yao/resources/test_user.rb
yao-0.3.5 test/yao/resources/test_user.rb
yao-0.3.4 test/yao/resources/test_user.rb
yao-0.3.3 test/yao/resources/test_user.rb
yao-0.3.2 test/yao/resources/test_user.rb
yao-0.3.1 test/yao/resources/test_user.rb
yao-0.3.0 test/yao/resources/test_user.rb
yao-0.2.13 test/yao/resources/test_user.rb