TIY-ATL-ROR-2015-Sep / assignments

0 stars 0 forks source link

HW 11-10 #429

Open kingcons opened 9 years ago

kingcons commented 9 years ago

Description

Add a Travis CI badge to your reddit project as described here.

Submission

Once you're done, post a link to your project's README with the badge in the comments of this issue.

calderete commented 9 years ago

https://github.com/calderete/smashitt

sunrick commented 9 years ago

Hey @calderete this test will probably pass no matter what:

 def test_user_name
    user = User.create(user_name: "Charlie", password: "12aswqh",
                    name: "Charlie")
    assert user.name == "Charlie"
  end

A more useful test:

def test_user_can_be_saved
    user = User.new(user_name: "charlie", password: "password", name: "Charlie")
    assert user.save # or assert user.valid?
end