Sha256: 6a8620949649c5e815a79abcfab37c26da9a626f1b1fd0beaa4f5221e465e77a

Contents?: true

Size: 967 Bytes

Versions: 1

Compression:

Stored size: 967 Bytes

Contents

Given /^I ask for help$/ do
  commands = [
    'staticpress',
    'staticpress help',
    'staticpress -h',
    'staticpress --help'
  ]
  run_one_of *commands
end

Given /^I want Staticpress' version$/ do
  commands = [
    'staticpress version',
    'staticpress -v',
    'staticpress --version'
  ]
  run_one_of *commands
end


When /^I make a new blog( called "(.+)")?$/ do |ignored, title|
  create_sample_blog title
end


Then /^I am pointed in the right direction$/ do
  assert_exit_status 0
  assert_partial_output 'Usage', all_output
end

Then /^I see the version$/ do
  assert_exit_status 0
  assert_partial_output 'Staticpress', all_output
end

Then /^the minimal files are present$/ do
  files = [
    'config.ru',
    'config.yml',
    'Gemfile',
    'README.markdown'
  ]
  check_file_presence files, true
end

Then /^Staticpress should remember my blog title$/ do
  check_exact_file_content 'config.yml', <<-YAML
---
:title: This is my blog
  YAML
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
staticpress-0.6.0 features/step_definitions/getting_started_steps.rb