Sha256: 02ed52baa30a9c78d685a02800e15be7bf758691507a46feb8599a7fc22138de
Contents?: true
Size: 832 Bytes
Versions: 3
Compression:
Stored size: 832 Bytes
Contents
require File.dirname(__FILE__) + '/../test_helper' # Used to test muck_content_permission class OaiEndpointTest < ActiveSupport::TestCase context "An oai endpoint instance" do setup do @oai_endpoint = Factory(:oai_endpoint) end should_belong_to :contributor should_belong_to :default_language should_validate_presence_of :uri should_have_named_scope :by_newest should_have_named_scope :banned should_have_named_scope :valid should_have_named_scope :by_title should_have_named_scope :recent end context "banned/unbanned" do setup do @feed = Factory(:feed) end should "be banned" do @feed.status = -1 assert @feed.banned? end should "not be banned" do @feed.status = 0 assert !@feed.banned? end end end
Version data entries
3 entries across 3 versions & 1 rubygems