Sha256: 1121c75bc1dde24530fb80c185aad6e1be072c6d50931787e21211eb1510628f
Contents?: true
Size: 572 Bytes
Versions: 6
Compression:
Stored size: 572 Bytes
Contents
require "test_helper" =begin What's being tested here? - Scopes =end class Admin::PagesControllerTest < ActionController::TestCase setup do @typus_user = Factory(:typus_user) @request.session[:typus_user_id] = @typus_user.id end teardown do Page.delete_all TypusUser.delete_all end context "index" do setup do Factory(:page) Factory(:page, :status => false) end should "return scoped results" do assert Page.count.eql?(1) get :index assert assigns(:items).size.eql?(1) end end end
Version data entries
6 entries across 6 versions & 1 rubygems