Skip to content

Commit

Permalink
Enforce that specs executed through aruba features use the new expect
Browse files Browse the repository at this point in the history
syntax
  • Loading branch information
benmoss committed Oct 6, 2013
1 parent b28bb36 commit de9afb6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions 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

0 comments on commit de9afb6

Please sign in to comment.