Rspec test for Rails method to return alphabetically sorted list of tags
Your test code is merely a copy of your model code, so you're not really testing anything.

Rather, your unit test should rely on fixtures, and the expected answer should be hard-coded in the test.