Sha256: 7d59e5782a3f66f522f770110ed5238888a43cd30866d0f22f1695adffb6958a

Contents?: true

Size: 455 Bytes

Versions: 6

Compression:

Stored size: 455 Bytes

Contents

require 'spec_helper'

module Refinery
  module Admin
    describe CoreController do
      refinery_login_with_factory :refinery_user

      it "updates the plugin positions" do
        plugins = logged_in_user.plugins.reverse.map &:name

        post 'update_plugin_positions', :menu => plugins

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
refinerycms-core-2.1.5 spec/controllers/refinery/admin/refinery_core_controller_spec.rb
refinerycms-core-2.1.4 spec/controllers/refinery/admin/refinery_core_controller_spec.rb
refinerycms-core-2.1.3 spec/controllers/refinery/admin/refinery_core_controller_spec.rb
refinerycms-core-2.1.2 spec/controllers/refinery/admin/refinery_core_controller_spec.rb
refinerycms-core-2.1.1 spec/controllers/refinery/admin/refinery_core_controller_spec.rb
refinerycms-core-2.1.0 spec/controllers/refinery/admin/refinery_core_controller_spec.rb