Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rake task for running MIBridges spec #607

Merged
merged 1 commit into from Dec 19, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 0 additions & 2 deletions Rakefile
@@ -1,5 +1,3 @@
# frozen_string_literal: true

require_relative "config/application"

task(:rubocop) do
Expand Down
10 changes: 10 additions & 0 deletions lib/tasks/mi_bridges.rake
@@ -0,0 +1,10 @@
namespace :mi_bridges do
desc "Run feature spec that tests the driving code"
task run: :environment do
puts "*" * 100
puts "Running the MIBridges spec...this may take a few minutes."
puts "*" * 100
ENV["RUN_MI_BRIDGES_TEST"] = "true"
sh "rspec spec/features/mi_bridges_driving_spec.rb"
end
end
1 change: 1 addition & 0 deletions spec/features/mi_bridges_driving_spec.rb
@@ -1,6 +1,7 @@
require "rails_helper"

RSpec.feature "MI Bridges Driving" do
# you can run this test via the rake task `rake mi_bridges:run`
# to run this in a non-headless way, remove the `:js` flag below
scenario "successfully drives, then re-drives a SNAP App", :js, :driving do
WebMock.disable!
Expand Down