Sha256: e108d5aec47d8c5408e5aaee8441a33b01fab6b9e81af1659e83e4f096917244

Contents?: true

Size: 441 Bytes

Versions: 10

Compression:

Stored size: 441 Bytes

Contents

require 'spec_helper'

module Admin
  describe RefineryCoreController do
    login_refinery_user

    it "should update the plugin positions" do
      plugins = @refinery_user.plugins.reverse.collect {|p| p.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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
refinerycms-core-1.0.11 spec/controllers/refinery_core_controller_spec.rb
refinerycms-core-1.0.10 spec/controllers/refinery_core_controller_spec.rb
refinerycms-core-1.0.9 spec/controllers/refinery_core_controller_spec.rb
refinerycms-core-1.0.8 spec/controllers/refinery_core_controller_spec.rb
refinerycms-core-1.0.7 spec/controllers/refinery_core_controller_spec.rb
refinerycms-core-1.0.5 spec/controllers/refinery_core_controller_spec.rb
refinerycms-core-1.0.4 spec/controllers/refinery_core_controller_spec.rb
refinerycms-core-1.0.3 spec/controllers/refinery_core_controller_spec.rb
refinerycms-core-1.0.1 spec/controllers/refinery_core_controller_spec.rb
refinerycms-core-1.0.0 spec/controllers/refinery_core_controller_spec.rb