Skip to content

Commit

Permalink
update post and user unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ehutzelman committed Nov 11, 2009
1 parent 31699d5 commit d6a4688
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
9 changes: 0 additions & 9 deletions test/unit/post_test.rb
Expand Up @@ -22,13 +22,4 @@ class PostTest < ActiveSupport::TestCase
end
end

private

def mock_messages_xml
xml = File.open("#{RAILS_ROOT}/test/fixtures/messages.xml") do |f|
f.read
end
Post.expects(:messages_xml).returns(xml)
end

end
4 changes: 4 additions & 0 deletions test/unit/user_test.rb
Expand Up @@ -38,6 +38,10 @@ class UserTest < ActiveSupport::TestCase
should "be returned for User#random" do
assert_equal @user, User.random
end

should "be included in the displayable named scope" do
assert_equal @user, User.displayable.first
end
end

end

0 comments on commit d6a4688

Please sign in to comment.