Sha256: 1fc3ae4beb5a415fa0140768d382a87fbfa384f440fad8754d221387b7eea038
Contents?: true
Size: 921 Bytes
Versions: 2
Compression:
Stored size: 921 Bytes
Contents
Feature: `before(:all)` blocks are disabled when all of the examples are also disabled Scenario: Run it Given a configured spec/spec_helper.rb And a file named "spec/before_all_spec.rb" with: """ruby require 'spec_helper' describe 'Tests that have before :all' do context do before(:all) { puts 'example 1 - before :all' } it 'leaves bad global state' do $global_state = true expect($global_state).to be true end end context do before(:all) { puts 'example 2 - before :all' } it do expect(true).to be true end end context do before(:all) { puts 'example 3 - before :all' } it 'relies on global state' do expect($global_state).to be false end end end """ When I run `rspec-sad` Then the output should contain "example 2 - before :all" 1 time
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rspec-search-and-destroy-0.0.4 | features/before_all_blocks_are_disabled.feature |
rspec-search-and-destroy-0.0.3 | features/before_all_blocks_are_disabled.feature |