Sha256: e298f32801592019ab862a3f86bb451a87d3480dec314568d8724a708ee190b7

Contents?: true

Size: 725 Bytes

Versions: 2

Compression:

Stored size: 725 Bytes

Contents

require 'aruba/cucumber'

require 'compass'
require 'debugger'
require 'haml'
require 'redcarpet'
require 'sass'

require_relative '../../lib/staticpress'

module IntegrationHelpers
  def create_sample_blog(title = 'Transient Thoughts')
    blog_title = title ? "'#{title}'" : nil
    run_simple "staticpress new temporary_blog #{blog_title}"
    cd('temporary_blog')
    append_to_file 'Gemfile', <<-RUBY
gem 'staticpress', :path => '../../..'
    RUBY
  end

  def run_one_of(*commands)
    run_simple commands.shuffle.first
  end

  def verify_directory_contains_file(directory, file)
    check_directory_presence [directory], true
    check_file_presence ["#{directory}/#{file}"], true
  end
end
World IntegrationHelpers

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
staticpress-0.6.2 features/support/env.rb
staticpress-0.6.1 features/support/env.rb