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'
|
require 'spec_helper'
|
||||||
|
|
||||||
describe Locomotive::GlobalActionsCell do
|
describe Locomotive::GlobalActionsCell do
|
||||||
# FIXME: This does not seem to work correctly, rspec-cells should allow this to be called
|
let(:menu) { render_cell('locomotive/global_actions', :show, :current_locomotive_account => FactoryGirl.build('admin user'), :current_site_url => 'http://www.yahoo.fr') }
|
||||||
# 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') }
|
|
||||||
|
|
||||||
describe 'show menu' do
|
describe 'show menu' do
|
||||||
|
|
||||||
@ -17,7 +13,9 @@ describe Locomotive::GlobalActionsCell do
|
|||||||
menu.should have_selector('a', :count => 4)
|
menu.should have_selector('a', :count => 4)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# FIXME: It seems like this has been removed? Is this test still relavent?
|
||||||
it 'has a link to edit my account' do
|
it 'has a link to edit my account' do
|
||||||
|
pending
|
||||||
menu.should have_link('Locomotive')
|
menu.should have_link('Locomotive')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user