Additional cleanup on admin_steps
This commit is contained in:
parent
fd6a13858c
commit
fe9eae7ea5
@ -1,11 +1,3 @@
|
|||||||
Before('@site_up') do
|
|
||||||
create_layout_samples
|
|
||||||
end
|
|
||||||
|
|
||||||
Before('@another_site_up') do
|
|
||||||
add_new_site
|
|
||||||
end
|
|
||||||
|
|
||||||
### Authentication
|
### Authentication
|
||||||
|
|
||||||
Given /^I am not authenticated$/ do
|
Given /^I am not authenticated$/ do
|
||||||
@ -46,12 +38,6 @@ end
|
|||||||
|
|
||||||
### Common
|
### Common
|
||||||
|
|
||||||
def add_new_site
|
|
||||||
@another_site = Factory.build(:site, :name => 'Locomotive test website #2', :subdomain => 'test2')
|
|
||||||
@another_site.memberships.build :account => @admin, :admin => true
|
|
||||||
@another_site.save
|
|
||||||
end
|
|
||||||
|
|
||||||
def create_layout_samples
|
def create_layout_samples
|
||||||
Factory(:layout, :site => @site, :name => 'One column', :value => %{<html>
|
Factory(:layout, :site => @site, :name => 'One column', :value => %{<html>
|
||||||
<head>
|
<head>
|
||||||
|
Loading…
Reference in New Issue
Block a user