Created
April 2, 2014 13:25
-
-
Save cupakromer/9934026 to your computer and use it in GitHub Desktop.
RelishApp Syntax Formatting Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Testing Code Blocks | |
In the feature description. | |
Only indent to specify code block: | |
No indent: | |
/a regex/ | |
a_string = "foo" | |
a_string.to_sym | |
2 space indent: | |
/a regex/ | |
a_string = "foo" | |
a_string.to_sym | |
4 space indent: | |
/a regex/ | |
a_string = "foo" | |
a_string.to_sym | |
Triple backticks | |
No indent: | |
``` | |
/a regex/ | |
a_string = "foo" | |
a_string.to_sym | |
``` | |
2 space indent: | |
``` | |
/a regex/ | |
a_string = "foo" | |
a_string.to_sym | |
``` | |
4 space indent: | |
``` | |
/a regex/ | |
a_string = "foo" | |
a_string.to_sym | |
``` | |
Triple backticks (with syntax) | |
No indent: | |
```ruby | |
/a regex/ | |
a_string = "foo" | |
a_string.to_sym | |
``` | |
2 space indent: | |
```ruby | |
/a regex/ | |
a_string = "foo" | |
a_string.to_sym | |
``` | |
4 space indent: | |
```ruby | |
/a regex/ | |
a_string = "foo" | |
a_string.to_sym | |
``` | |
Tripe quotes (with syntax): | |
No indent: | |
"""ruby | |
/a regex/ | |
a_string = "foo" | |
a_string.to_sym | |
""" | |
2 space indent: | |
"""ruby | |
/a regex/ | |
a_string = "foo" | |
a_string.to_sym | |
""" | |
4 space indent: | |
"""ruby | |
/a regex/ | |
a_string = "foo" | |
a_string.to_sym | |
""" | |
Scenario: Code block in scenario | |
Given some ruby code: | |
"""ruby | |
/a regex/ | |
a_string = "foo" | |
a_string.to_sym | |
""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment