diff options
author | Jon Cairns <jon@joncairns.com> | 2013-09-09 10:17:07 +0100 |
---|---|---|
committer | Jon Cairns <jon@joncairns.com> | 2013-09-09 10:17:07 +0100 |
commit | 85b6a159a9c13fe3a30a9a11306bab98e858151c (patch) | |
tree | 2bfe29ec8143261b92bf6346758894502c5468ec /features | |
parent | b05ef28823e908028a49117b034bf9febe83b2ad (diff) | |
download | vdebug-85b6a159a9c13fe3a30a9a11306bab98e858151c.zip |
Cucumber tests for status window
Diffstat (limited to 'features')
-rw-r--r-- | features/correct_window_setup.feature | 13 | ||||
-rw-r--r-- | features/step_definitions/status_window_steps.rb | 7 |
2 files changed, 20 insertions, 0 deletions
diff --git a/features/correct_window_setup.feature b/features/correct_window_setup.feature index db88f8c..3e05c37 100644 --- a/features/correct_window_setup.feature +++ b/features/correct_window_setup.feature @@ -3,6 +3,17 @@ Feature: Correct window setup As a user I want to see correct watch, stack and status information + Scenario: The status window + Given I have a file example.php containing + """ + <?php + $var1 = 1; + ?> + """ + When I start the debugger with the PHP script example.php + Then the status should be break + And the status window should contain localhost:9000 + Scenario: The watch window Given I have a file example.php containing """ @@ -49,3 +60,5 @@ Feature: Correct window setup When I step in Then item 1 on the stack should show the file example2.php And item 1 on the stack should show line 2 + And item 2 on the stack should show the file example.php + And item 2 on the stack should show line 2 diff --git a/features/step_definitions/status_window_steps.rb b/features/step_definitions/status_window_steps.rb new file mode 100644 index 0000000..946f6fa --- /dev/null +++ b/features/step_definitions/status_window_steps.rb @@ -0,0 +1,7 @@ +Then "the status should be $status" do |status| + vdebug.status.should == status +end + +Then "the status window should contain $string" do |string| + vdebug.status_window_content.should include string +end |