<commit_before>require File.dirname(__FILE__) + '/../../spec_helper'

describe Admin::PageAttachmentsController do
  dataset :users, :assets

  before :each do
    ActionController::Routing::Routes.reload
    login_as :designer
  end
  
  it "should be a ResourceController" do
    controller.should be_kind_of(Admin::ResourceController)
  end

  it "should handle PageAttachments" do
    controller.class.model_class.should == PageAttachment
    controller.send(:model_symbol).should == :page_attachment
  end

  describe "create" do
    before do
      post :create, :format => :js, :page_id => page_id(:pictured), :page_attachment => {:asset_id => asset_id(:document)}
    end<commit_msg>mark page_attachment_controller spec pending. do we even use this controller?<commit_after>require File.dirname(__FILE__) + '/../../spec_helper'

describe Admin::PageAttachmentsController do
  dataset :users, :assets

  before :each do
    ActionController::Routing::Routes.reload
    login_as :designer
  end
  
  it "should be a ResourceController" do
    controller.should be_kind_of(Admin::ResourceController)
  end

  it "should handle PageAttachments" do
    controller.class.model_class.should == PageAttachment
    controller.send(:model_symbol).should == :page_attachment
  end

  describe "create" do
    before do
      pending
      post :create, :format => :js, :page_id => page_id(:pictured), :page_attachment => {:asset_id => asset_id(:document)}
    end
{'fraction_non_alphanumeric': 0.10684931506849316, 'fraction_numerical': 0.0, 'mean_word_length': 4.3321167883211675, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6644391', 'n_tokens_mistral': 431, 'n_tokens_neox': 424, 'n_words': 109}