All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gems.bourbon-5.0.0.features.step_definitions.bourbon_steps.rb Maven / Gradle / Ivy

There is a newer version: 3.7.2
Show newest version
Given /^bourbon is already installed$/ do
  install_bourbon
end

Given /^I install bourbon to "([^"]*)"$/ do |path|
end

Then /^the sass directories(?: with "([^"]+)" prefix)? should have been generated$/ do |prefix|
  sass_directories = [
    "bourbon/helpers",
    "bourbon/library",
    "bourbon/settings",
    "bourbon/utilities",
    "bourbon/validators",
  ]
  sass_directories.map!{ |directory| bourbon_path(prefix, directory) }
  check_directory_presence(sass_directories, true)
end

Then /^the master bourbon partial should have been generated(?: within "([^"]+)" directory)?$/ do |prefix|
  check_file_presence([bourbon_path(prefix, '_bourbon.scss')], true)
end

Then /^bourbon should not have been generated$/ do
  check_directory_presence(['bourbon'], false)
end

Then /^the output should contain the current version of Bourbon$/ do
  assert_exact_output("Bourbon #{Bourbon::VERSION}\n", all_output)
end




© 2015 - 2025 Weber Informatics LLC | Privacy Policy