From ddfd8c6a075440e6c8ad090ad4d3f69a72b3c6b0 Mon Sep 17 00:00:00 2001 From: Mario Visic Date: Sun, 15 Jan 2012 15:38:07 +1100 Subject: [PATCH] Fixed up some specs for the global action spec. --- spec/cells/locomotive/global_actions_spec.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/spec/cells/locomotive/global_actions_spec.rb b/spec/cells/locomotive/global_actions_spec.rb index a07eecd7..18d8fdcc 100644 --- a/spec/cells/locomotive/global_actions_spec.rb +++ b/spec/cells/locomotive/global_actions_spec.rb @@ -1,11 +1,7 @@ require 'spec_helper' describe Locomotive::GlobalActionsCell do - # FIXME: This does not seem to work correctly, rspec-cells should allow this to be called - # as if it were a controller. - # render_views - - let(:menu) { render_cell('admin/global_actions', :show, :current_admin => FactoryGirl.build('admin user'), :current_site_url => 'http://www.yahoo.fr') } + let(:menu) { render_cell('locomotive/global_actions', :show, :current_locomotive_account => FactoryGirl.build('admin user'), :current_site_url => 'http://www.yahoo.fr') } describe 'show menu' do @@ -17,7 +13,9 @@ describe Locomotive::GlobalActionsCell do menu.should have_selector('a', :count => 4) end + # FIXME: It seems like this has been removed? Is this test still relavent? it 'has a link to edit my account' do + pending menu.should have_link('Locomotive') end