Fixed up some specs for the global action spec.

This commit is contained in:
Mario Visic 2012-01-15 15:38:07 +11:00
parent ae244c2703
commit ddfd8c6a07
1 changed files with 3 additions and 5 deletions

View File

@ -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