Skip to content

Commit

Permalink
Merge pull request refinery#1495 from phiggins/fix_spec
Browse files Browse the repository at this point in the history
Fix spec
  • Loading branch information
parndt committed Mar 22, 2012
2 parents 85f9a04 + ed761ca commit da1bd42
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ module Admin
login_refinery_user

it "should update the plugin positions" do
plugins = @refinery_user.plugins.reverse.collect {|p| p.name}
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|
refinery_user.plugins.reload
refinery_user.plugins.each_with_index do |plugin, idx|
plugin.name.should eql(plugins[idx])
end
end
Expand Down

0 comments on commit da1bd42

Please sign in to comment.