Sha256: 659fee7ec267a48a6a986a281ec40ab474730f942f65c3563e90f37368073cf8

Contents?: true

Size: 440 Bytes

Versions: 3

Compression:

Stored size: 440 Bytes

Contents

# frozen_string_literal: true
require 'cucumber/core/ast/background'
module Cucumber::Core::Ast
  describe Background do
    it "has a useful inspect" do
      location = Location.new("features/a_feature.feature", 3)
      background = Background.new(location, double, "Background", "the name", double, [])
      expect(background.inspect).to eq(%{#<Cucumber::Core::Ast::Background "Background: the name" (#{location})>})
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cucumber-core-3.0.0 spec/cucumber/core/ast/background_spec.rb
cucumber-core-3.0.0.pre.2 spec/cucumber/core/ast/background_spec.rb
cucumber-core-2.0.0 spec/cucumber/core/ast/background_spec.rb