features/files.feature in cuken-0.1.1 vs features/files.feature in cuken-0.1.2

- old
+ new

@@ -20,20 +20,20 @@ @steps Scenario: Atime Given the empty file "foo.file" And we record the a/mtime of "foo.file" - And I run "sleep 1" - And I run "touch -a foo.file" + And I run `sleep 1` + And I run `touch -a foo.file` Then the atime of "foo.file" changes @steps Scenario: Mtime Given an empty file named "foo.file" And we record the a/mtime of "foo.file" - And I run "sleep 1" - And I run "touch -m foo.file" + And I run `sleep 1` + And I run `touch -m foo.file` Then the mtime of "foo.file" changes @steps Scenario: File contents When I write to "monkeytest.file" with: @@ -42,11 +42,11 @@ monkeyshorts """ Then the file "monkeytest.file" contains "monkeypants" @steps - Scenario: File contents multiple times + Scenario: File contents exact match When I write to "monkeytest.file" with: """ monkeypants monkeyshorts @@ -55,16 +55,30 @@ """ monkeypants monkeyshorts """ + Scenario: File contents multiple matches + When I write to "monkeytest.file" with: + """ + monkeypants + monkeyshorts + monkeypants + monkeyshorts + + """ + Then the file "monkeytest.file" contains "monkeyp" exactly "2" times + Then the file "monkeytest.file" does not contain "monkey" exactly "2" times + @steps Scenario: File modes - When I run "touch filemode.file" - And I run "chmod 644 filemode.file" - Then the file "filemode.file" has mode "644" - And the file "filemode.file" has mode "0644" + When I run `touch filemode.file` + And I run `chmod 644 filemode.file` + Then the file "filemode.file" has octal mode "188" + And the file "filemode.file" has octal mode "33188" + And the file "filemode.file" has decimal mode "644" + And the file "filemode.file" has decimal mode "0644" @steps Scenario: Directory exists When I run "mkdir -p dirtest" Then the directory "dirtest" exists @@ -72,12 +86,12 @@ @steps Scenario: Directory does not exist Then the directory "dirtest-m000" does not exist @steps - Scenario: Directory mode - When I run "mkdir -p dirtest" - And I run "chmod 755 dirtest" - Then the directory "dirtest" has mode "755" - And the directory "dirtest" has mode "0755" - - + Scenario: Directory modes + When I run `mkdir -p dirtest` + And I run `chmod 755 dirtest` + Then the directory "dirtest" has decimal mode "755" + And the directory "dirtest" has decimal mode "2755" + Then the directory "dirtest" has octal mode "901" + And the directory "dirtest" has octal mode "17901"