Sha256: 9fa97ea3dae4cfe0b864536e463a275ecbbeb51361162ba0e43b746809e990a7
Contents?: true
Size: 1023 Bytes
Versions: 2
Compression:
Stored size: 1023 Bytes
Contents
Feature: File commands with My scripts As a user of the My gem I want to specify files in scripts So that I can download them automatically Scenario: Requiring files Given a file named "test.txt.template" with: """ My script test content """ And a file named "test2.txt.template" with: """ My script test2 content """ And a file named "script.rb" with: """ file "test.txt" => "test.txt.template" file "test2.txt" => "test2.txt.template" """ When I run "../../bin/my script.rb" Then the file "test.txt" should contain "My script test content" And the file "test2.txt" should contain "My script test2 content" Scenario: Requiring a file with template options Given a file named "test.txt.template" with: """ My script injected content: <%= @content %> """ And a file named "script.rb" with: """ file "test.txt" => "test.txt.template" do @content = "injection" end """ When I run "../../bin/my script.rb" Then the file "test.txt" should contain "My script injected content: injection"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
my-0.3.1 | features/files.feature |
my-0.3.0 | features/files.feature |