Permalink
Browse files

Fixed and cleaned tests.

  • Loading branch information...
1 parent b4bb50a commit d39f81e04f490ecd39257b503e714ff6c7543b82 Francesc Esplugas committed Feb 13, 2010
@@ -122,6 +122,8 @@ def filters
when :date, :datetime then html << date_filter(current_request, key)
when :belongs_to then html << relationship_filter(current_request, key)
when :has_and_belongs_to_many then html << relationship_filter(current_request, key, true)
+ when nil then
+ # Do nothing. This is ugly but for now it's ok.
else
html << string_filter(current_request, key)
end
@@ -7,9 +7,7 @@ class Post < ActiveRecord::Base
has_many :views
belongs_to :favorite_comment, :class_name => 'Comment'
- def self.status
- %w( pending published unpublished )
- end
+ STATUS = %w( pending published unpublished )
def self.typus
'plugin'
@@ -83,11 +83,8 @@ def test_should_sign_out
[ :notice, :error, :warning ].each { |f| assert !flash[f] }
end
- # FIXME
def test_should_verify_block_users_on_the_fly
- return
-
admin = typus_users(:admin)
@request.session[:typus_user_id] = admin.id
get :dashboard
Oops, something went wrong.

0 comments on commit d39f81e

Please sign in to comment.