Fixed up some specs for the global action spec.
This commit is contained in:
parent
ae244c2703
commit
ddfd8c6a07
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user