Sha256: 77b2ce4f3d286984c5bab7b8a63458d5a04b7ac247f7904899024054e6a13c94

Contents?: true

Size: 1.45 KB

Versions: 9

Compression:

Stored size: 1.45 KB

Contents

Given /^I have a new rails app$/ do
  generate_rails_app
end

Given /^I have no layouts$/ do
  remove_layouts  
end

Given /^I have no stylesheets$/ do
  remove_stylesheets
end

Given /^I generate a theme$/ do
  generate_layout
end

Given /^I generate a theme with name "([^\"]*)"$/ do |name|
  generate_layout(name)
end

Given /^I generate a theme choosing the "([^\"]*)" theme$/ do |theme_name|
  generate_layout(:theme => theme_name)
end

Then /^I should have a layout named "([^\"]*)"$/ do |filename|
  layout_exists?(filename).should be_true  
end

Then /^I should have a stylesheet named "([^\"]*)"$/ do |filename|
  stylesheet_exists?(filename).should be_true    
end

Then /^I should have an image named "([^\"]*)"$/ do |filename|
  image_exists?(filename).should be_true    
end

Given /^I generate a theme without layout choosing the "([^\"]*)" theme$/ do |theme_name|
  generate_layout(:theme => theme_name, :no_layout => true )
end

Then /^I should not have any layouts$/ do
  layouts_count.should == 0
end

Given /^I generate a theme with application name "([^\"]*)"$/ do |name|
  generate_layout(:app_name => name )
end

Then /^the layout "([^\"]*)" should have "([^\"]*)" as page title$/ do |layout, title|
  layout_title(layout).should == title
end

Given /^I generate a theme for signin and signup$/ do
  generate_layout(:layout_type => :sign)
end

Then /^I should have a layout named "([^\"]*)" with just a box$/ do |layout|
  layout_with_box?(layout).should be_true
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
web-app-theme-0.7.0 features/step_definitions/layout_steps.rb
web-app-theme-0.6.3 features/step_definitions/layout_steps.rb
web-app-theme-0.6.2 features/step_definitions/layout_steps.rb
web-app-theme-0.6.1 features/step_definitions/layout_steps.rb
web-app-theme-0.6.0 features/step_definitions/layout_steps.rb
web-app-theme-0.5.3 features/step_definitions/layout_steps.rb
web-app-theme-0.5.2 features/step_definitions/layout_steps.rb
web-app-theme-0.5.1 features/step_definitions/layout_steps.rb
web-app-theme-0.5.0 features/step_definitions/layout_steps.rb