File: core_standalone_steps.rb

package info (click to toggle)
ruby-rspec 3.4.0c3e0m1s1-1~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 6,124 kB
  • sloc: ruby: 59,418; sh: 1,405; makefile: 98
file content (16 lines) | stat: -rw-r--r-- 636 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Given(/^only rspec-core is installed$/) do
  if RUBY_VERSION.to_f >= 1.9 # --disable-gems is invalid on 1.8.7
    # Ensure the gem versions of rspec-mocks and rspec-expectations
    # won't be loaded if available on the developers machine.
    set_env('RUBYOPT', ENV['RUBYOPT'] + ' --disable-gems')
  end

  # This will make `require_expect_syntax_in_aruba_specs.rb` (loaded
  # automatically when the specs run) remove rspec-mocks and
  # rspec-expectations from the load path.
  set_env('REMOVE_OTHER_RSPEC_LIBS_FROM_LOAD_PATH', 'true')
end

Given(/^rspec-expectations is not installed$/) do
  step "only rspec-core is installed"
end