Sha256: 1a01f59289b2455f0520cc97e544fd221df7f6033143f8743a1ca38978e93ac2

Contents?: true

Size: 1.74 KB

Versions: 2

Compression:

Stored size: 1.74 KB

Contents

Feature: Double command line applications

	In order to double command line applications
	As a developer using Cucumber
	I want to use the "double of" steps

	Scenario: Double default behaviour
		Given a double of "ls"
		When I run `ls -la`
		Then the exit status should be 0
		And the stdout should contain exactly:
			"""
			"""			
		And the stderr should contain exactly:
			"""
			"""

	Scenario: Double with stdout
		Given a double of "ls" with stdout:
			"""
			hello, world.
			"""
		When I successfully run `ls -la`
		Then the stdout should contain exactly:
			"""
			hello, world.
			
			"""
		And the stderr should contain exactly:
			"""
			"""

	 Scenario: Double with stderr
	 	Given a double of "ls" with stderr:
	 		"""
	 		error: something crashed!
	 		"""
	 	When I successfully run `ls -la`
	 	And the stdout should contain exactly:
	 		"""
	 		"""
	 	Then the stderr should contain exactly:
	 		"""
	 		error: something crashed!
   
	 		"""

	Scenario: Double with exit status
		Given a double of "ls" with exit status 255
		When I run `ls -la`
		Then the exit status should be 255
		And the stdout should contain exactly:
			"""
			"""			
		And the stderr should contain exactly:
			"""
			"""

	Scenario: Double with exit status and stdout
		Given a double of "ls" with exit status 255 and stdout:
			"""
			hello, world.
			"""
		When I run `ls -la`
		Then the exit status should be 255
		And the stdout should contain exactly:
			"""
			hello, world.
			
			"""			
		And the stderr should contain exactly:
			"""
			"""

	@repeat_arguments
	Scenario: Double with repeating arguments
		Given a double of "ls"
		When I run `ls -la`
		Then the stdout should contain exactly:
			"""
			ls -la
			
			"""
		And the stderr should contain exactly:
			"""
			"""

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
aruba-doubles-0.0.2 features/double_cli_apps.feature
aruba-doubles-0.0.1 features/double_cli_apps.feature