Sha256: 198111b3159561a1f984868648391e2d764f57c9bb328d0e28b3a57b9ed28c26

Contents?: true

Size: 881 Bytes

Versions: 7

Compression:

Stored size: 881 Bytes

Contents

Feature: Use rspec-core without rspec-mocks or rspec-expectations

  It is most common to use rspec-core with rspec-mocks and rspec-expectations,
  and rspec-core will take care of loading those libraries automatically if
  available, but rspec-core can be used just fine without either of those
  gems installed.

  Scenario: Use only rspec-core when only it is installed
    Given only rspec-core is installed
      And a file named "core_only_spec.rb" with:
        """ruby
        RSpec.describe "Only rspec-core is available" do
          it "it fails when an rspec-mocks API is used" do
            dbl = double("MyDouble")
          end

          it "it fails when an rspec-expectations API is used" do
            expect(1).to eq(1)
          end
        end
        """
    When I run `rspec core_only_spec.rb`
    Then the output should contain "2 examples, 2 failures"

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
opal-rspec-0.8.0 rspec-core/upstream/features/core_standalone.feature
opal-rspec-0.8.0.alpha3 rspec-core/upstream/features/core_standalone.feature
opal-rspec-0.8.0.alpha2 rspec-core/upstream/features/core_standalone.feature
opal-rspec-0.8.0.alpha1 rspec-core/upstream/features/core_standalone.feature
opal-rspec-0.7.1 rspec-core/upstream/features/core_standalone.feature
opal-rspec-0.7.0 rspec-core/upstream/features/core_standalone.feature
opal-rspec-0.7.0.rc.2 rspec-core/upstream/features/core_standalone.feature