Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Enforce that specs executed through aruba features use the new `expect`

syntax
  • Loading branch information...
commit de9afb6e39afaae07431aa81760344569bbc7f76 1 parent b28bb36
@benmoss benmoss authored
Showing with 16 additions and 0 deletions.
  1. +16 −0 features/support/require_expect_syntax_in_aruba_specs.rb
View
16 features/support/require_expect_syntax_in_aruba_specs.rb
@@ -0,0 +1,16 @@
+if defined?(Cucumber)
+ require 'shellwords'
+ Before do
+ set_env('SPEC_OPTS', "-r#{Shellwords.escape(__FILE__)}")
+ end
+else
+ RSpec.configure do |rspec|
+ rspec.mock_with :rspec do |mocks|
+ mocks.syntax = :expect
+ end
+
+ rspec.expect_with :rspec do |expectations|
+ expectations.syntax = :expect
+ end
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.