public
Description: A programmer's editor for Gnome.
Homepage: http://redcareditor.com
Clone URL: git://github.com/danlucraft/redcar.git
redcar / plugins / project / features / project_tab.feature
100644 66 lines (52 sloc) 2.63 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Feature: The Project Tab
  As a User
  I want to navigate through my projects easily
 
  Scenario: Open the project tab
    When I press "Ctrl+Shift+P"
    And I press "2"
    Then there should be one ProjectTab open
    And the title of the ProjectTab should be "Project"
 
  Scenario: Shows the menu
    Given I have opened the ProjectTab
    When I right click on the ProjectTab
    Then I should see a menu with "Add Project Directory"
 
  Scenario: Add a project directory, adds directory, subdirectories and files
    Given I have opened the ProjectTab
    When I add the directory "plugins/project" to the ProjectTab
    Then I should see "project" in the ProjectTab
    And I should see "commands" in the ProjectTab
    And I should see "plugin.rb" in the ProjectTab
    And I should not see "step_definitions" in the ProjectTab
    And I should not see "[dummy row]" in the ProjectTab
 
  Scenario: Remove a project directory
    Given I have opened the ProjectTab
    When I add the directory "plugins/project" to the ProjectTab
    And I remove the directory "plugins/project" from the ProjectTab
    Then I should not see "project" in the ProjectTab
 
  Scenario: Remove a project directory by giving a subdirectory
    Given I have opened the ProjectTab
    When I add the directory "plugins/project" to the ProjectTab
    And I remove the directory "plugins/project/spec" from the ProjectTab
    Then I should not see "project" in the ProjectTab
 
  Scenario: Open a subdirectory
    Given I have opened the ProjectTab
    And I have added the directory "plugins/project" to the ProjectTab
    When I open "features" in the ProjectTab
    Then I should see "step_definitions" in the ProjectTab
    And I should see "env.rb" in the ProjectTab
    And I should not see "[dummy row]" in the ProjectTab
 
  Scenario: Close a subdirectory
    Given I have opened the ProjectTab
    And I have added the directory "plugins/project" to the ProjectTab
    When I close "features" in the ProjectTab
    Then I should not see "step_definitions" in the ProjectTab
 
  Scenario: Should reload subdirectories
    Given I have opened the ProjectTab
    And I have added the directory "plugins/project" to the ProjectTab
    When I open "features" in the ProjectTab
    And I should not see "astoria.txt" in the ProjectTab
    And I close "features" in the ProjectTab
    And I create a file "astoria.txt" in the project plugin's features directory
    And I open "features" in the ProjectTab
    Then I should see "astoria.txt" in the ProjectTab
    And I cleanup the file "astoria.txt" in the project plugin's features directory