Sha256: 0b330085c6c979362a136d18e2e37d6c05f3293c6e62e7cb2674f2255e562cb9

Contents?: true

Size: 1.11 KB

Versions: 8

Compression:

Stored size: 1.11 KB

Contents

def generator_file(generator, file)
  File.read File.expand_path("../../../generators/#{generator}/#{file}", __FILE__)
end

Then /^the directory "([^"]*)" should contain a Noumenon site$/ do |path|
  Then %Q{a file named "#{path}/Gemfile" should exist}
   And %Q{a file named "#{path}/config.ru" should exist}
  
  check_exact_file_content "#{path}/Gemfile", generator_file("site", "Gemfile")
  check_exact_file_content "#{path}/config.ru", generator_file("site", "config.ru")
end

Then /^the directory "([^"]*)" should contain a theme$/ do |path|
  check_exact_file_content "#{path}/theme.yml", generator_file("theme", "theme.yml")
  check_exact_file_content "#{path}/layouts/default.nou.html", generator_file("theme", "layouts/default.nou.html")
  check_exact_file_content "#{path}/templates/default.nou.html", generator_file("theme", "templates/default.nou.html")
  check_exact_file_content "#{path}/assets/style.css", generator_file("theme", "assets/style.css")
end

Then /^the directory "([^"]*)" should contain a repository$/ do |path|
  check_exact_file_content "#{path}/index.yml", generator_file("repository", "index.yml")
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
noumenon-0.1.7 features/step_definitions/generator_steps.rb
noumenon-0.1.6 features/step_definitions/generator_steps.rb
noumenon-0.1.5 features/step_definitions/generator_steps.rb
noumenon-0.1.4 features/step_definitions/generator_steps.rb
noumenon-0.1.3 features/step_definitions/generator_steps.rb
noumenon-0.1.2 features/step_definitions/generator_steps.rb
noumenon-0.1.1 features/step_definitions/generator_steps.rb
noumenon-0.1.0 features/step_definitions/generator_steps.rb