File: background_spec.rb

package info (click to toggle)
ruby-cucumber-core 1.5.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 580 kB
  • sloc: ruby: 5,763; makefile: 2
file content (10 lines) | stat: -rw-r--r-- 410 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
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