Sha256: b4052c9946a6cf192088481cd14a2d229d6114c462622e47ec959074520b4744

Contents?: true

Size: 465 Bytes

Versions: 7

Compression:

Stored size: 465 Bytes

Contents

require 'spec_helper'

module Refinery
  module Admin
    describe CoreController do
      login_refinery_user

      it "updates the plugin positions" do
        plugins = refinery_user.plugins.reverse.collect(&:name)

        post 'update_plugin_positions', :menu => plugins

        refinery_user.plugins.reload
        refinery_user.plugins.each_with_index do |plugin, idx|
          plugin.name.should eql(plugins[idx])
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
refinerycms-core-2.0.10 spec/controllers/refinery/admin/refinery_core_controller_spec.rb
refinerycms-core-2.0.9 spec/controllers/refinery/admin/refinery_core_controller_spec.rb
refinerycms-core-2.0.8 spec/controllers/refinery/admin/refinery_core_controller_spec.rb
refinerycms-core-2.0.7 spec/controllers/refinery/admin/refinery_core_controller_spec.rb
refinerycms-core-2.0.6 spec/controllers/refinery/admin/refinery_core_controller_spec.rb
refinerycms-core-2.0.5 spec/controllers/refinery/admin/refinery_core_controller_spec.rb
refinerycms-core-2.0.4 spec/controllers/refinery/admin/refinery_core_controller_spec.rb