Sha256: f287b3d905c0640fbe91dcf201d9dca0b150486d3e3ff93846f1c53144e77e99
Contents?: true
Size: 1.24 KB
Versions: 3
Compression:
Stored size: 1.24 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| Then %Q{a directory named "#{path}/pages" should exist} check_exact_file_content "#{path}/pages/index.yml", generator_file("repository/pages", "index.yml") And %Q{a directory named "#{path}/assets" should exist} end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
noumenon-0.2.2 | features/step_definitions/generator_steps.rb |
noumenon-0.2.1 | features/step_definitions/generator_steps.rb |
noumenon-0.2.0 | features/step_definitions/generator_steps.rb |