Skip to content

Instantly share code, notes, and snippets.

@davidcunha
Created June 17, 2015 23:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidcunha/45c12326e2cbcf73dd89 to your computer and use it in GitHub Desktop.
Save davidcunha/45c12326e2cbcf73dd89 to your computer and use it in GitHub Desktop.
Extend rake spec with Capybara feature tests
require 'rake'
require 'rspec/core/rake_task'
namespace :spec do
desc "Run the code examples in spec/features"
RSpec::Core::RakeTask.new(:features) do |t|
t.pattern = "spec/features/*_spec.rb"
end
end
task(:spec).enhance(["spec:features"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment