Sha256: c9cd011f3b0dc5121fee7db2e029a66ee3dcaea06f0c5fc513db979361df65c7

Contents?: true

Size: 431 Bytes

Versions: 2

Compression:

Stored size: 431 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'

describe PageAttachment do
  dataset :pages, :page_attachments
  
  it "should change position when first attachment is moved lower" do
    img = page_attachments(:rails_png)
    txt = page_attachments(:foo_txt)
    
    img.position.should == 1
    txt.position.should == 2
    img.move_lower
    txt.reload
    img.position.should == 2
    txt.position.should == 1
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
radiant-page_attachments-extension-1.0.2 spec/models/page_attachment_spec.rb
radiant-page_attachments-extension-1.0.0 spec/models/page_attachment_spec.rb