Sha256: 36581f28d6f22e61c64824931eda841eda3f1ba81949d7ffe7afd6a79554c4b1
Contents?: true
Size: 598 Bytes
Versions: 16
Compression:
Stored size: 598 Bytes
Contents
# This file is designed to prevent the use of certain APIs that # we don't want used from our cukes, since they function as documentation. if defined?(Cucumber) require 'shellwords' Before('~@allow-old-syntax') do set_env('SPEC_OPTS', "-r#{Shellwords.escape(__FILE__)}") end else module DisallowOneLinerShould def should(*) raise "one-liner should is not allowed" end def should_not(*) raise "one-liner should_not is not allowed" end end RSpec.configure do |rspec| rspec.disable_monkey_patching! rspec.include DisallowOneLinerShould end end
Version data entries
16 entries across 16 versions & 2 rubygems