spec/cucumber/cli/profile_loader_spec.rb in cucumber-2.0.0.beta.5 vs spec/cucumber/cli/profile_loader_spec.rb in cucumber-2.0.0.rc.1

- old
+ new

@@ -29,8 +29,18 @@ it "treats forward slashes as literals" do given_cucumber_yml_defined_as({'default' => '--format "ugly" features/sync_imap_mailbox.feature:16:22'}) expect(loader.args_from('default')).to eq ['--format','ugly','features/sync_imap_mailbox.feature:16:22'] end + + it "treats percent sign as ERB code block after YAML directive" do + yml = <<-HERE +--- +% x = '--format "pretty" features/sync_imap_mailbox.feature:16:22' +default: <%= x %> + HERE + given_cucumber_yml_defined_as yml + expect(loader.args_from('default')).to eq ['--format','pretty','features/sync_imap_mailbox.feature:16:22'] + end end end end