Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enforce that specs executed through aruba features use the new
expect
syntax
- Loading branch information
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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 |