Sha256: 057f01b54980b371eea00ebd64e2a8f325d5af0e22fdedfd5d5684d157fc5877

Contents?: true

Size: 475 Bytes

Versions: 4

Compression:

Stored size: 475 Bytes

Contents

require 'spec_helper'

describe RubberRing::AttachmentsController do

  it 'should save attachment for the page' do
    xhr :post, :save_image, {
      page_controller: 'test',
      page_action: 'test',
      page_locale: 'fr',
      height: '300',
      content: { 'key' => 'value' }
    }
    response.should be_success

    RubberRing::Page.all.size.should eq 1
    RubberRing::PageContent.all.size.should eq 1
    RubberRing::Page.first.locale.should eq 'fr'
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubber_ring-0.1.2 spec/controllers/attachments_controller_spec.rb
rubber_ring-0.1.1 spec/controllers/attachments_controller_spec.rb
rubber_ring-0.1.0 spec/controllers/attachments_controller_spec.rb
rubber_ring-0.0.1 spec/controllers/attachments_controller_spec.rb