diff --git a/scrolls/capybara_webkit.rb b/scrolls/capybara_webkit.rb new file mode 100644 index 0000000..89efa4b --- /dev/null +++ b/scrolls/capybara_webkit.rb @@ -0,0 +1,29 @@ +gem_group :test do + gem 'capybara-webkit' + if config['headless_ci'] + gem 'headless' + end +end + +after_bundler do + # Capybara.javascript_driver = :webkit +end + +__END__ + +name: Capybara Webkit +description: +author: drnic +website: https://github.com/thoughtbot/capybara-webkit + +requires: [capybara] +run_after: [capybara] +run_before: [] + +category: testing +# exclusive: + +config: + - headless_ci: + type: boolean + prompt: "Headless mode for CI testing?" diff --git a/scrolls/jenkins.rb b/scrolls/jenkins.rb new file mode 100644 index 0000000..d81b0eb --- /dev/null +++ b/scrolls/jenkins.rb @@ -0,0 +1,24 @@ +gem 'jenkins' + +after_everything do + public_repo = !config["github_private"] + run "jenkins create . --scm #{@git_uri}#{' --public-scm' unless public_repo} --template rails3" +end + +__END__ + +name: Jenkins +description: +author: drnic +website: + +requires: [github] +run_after: [github] + +category: testing +exclusive: ci + +config: + - jenkins_host: + type: string + prompt: "Jenkins CI host?" diff --git a/scrolls/poltergeist.rb b/scrolls/poltergeist.rb new file mode 100644 index 0000000..35c7e0f --- /dev/null +++ b/scrolls/poltergeist.rb @@ -0,0 +1,27 @@ +gem 'poltergeist' + +after_bundler do + append_to_file 'features/support/env.rb', <<-RUBY +require 'capybara/poltergeist' +Capybara.javascript_driver = :poltergeist +RUBY +end + +__END__ + +name: Poltergeist +description: +author: drnic +website: + +requires: [] +run_after: [capybara, cucumber] +run_before: [] + +category: other # authentication, testing, persistence, javascript, css, services, deployment, and templating +# exclusive: + +# config: +# - foo: +# type: boolean +# prompt: "Is foo true?"