Sha256: 6d0559f549735cb9cf620bdd3142c923e3b8400e2c812d2318b25f23d114a168
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
Contents
require 'test_helper' describe '<%= "#{@env[:stack_path].gsub('/', ' ')}" %>' do Given(:workbench) { 'empty' } Given(:cli) { Roro::CLI.new } Given(:adventures) { %w[] } Given(:overrides) { %w[] } Given(:rollon) { stub_adventure stub_overrides stub_run_actions cli.rollon } Given { rollon unless adventures.empty?} describe 'must generate a' do describe '.keep file so Git keeps the directory under source control' do Then { assert_file '.keep' } end describe 'a file in the adjacent templates directory' do # Then { assert_file 'path_to_expected_file' } describe 'with expected content matching regex' do # Then { assert_file 'path_to_expected_file', /expected_content' } end describe 'with expected content the same as actual content string' do # Then { assert_file 'path_to_expected_file', 'expected_content' } end describe 'with many strings expected to have been interpolated' do # Given(:strings) { [1, :second, third] } # Then { strings.each { |c| assert_file 'path_to_expected_file', c } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
roro-0.3.30 | lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/roll_your_own/templates/stage_one/%interpolated_stack_path%/test/stage_one/stage_test.rb.tt |