Created
May 11, 2010 21:30
-
-
Save ivanoats/397914 to your computer and use it in GitHub Desktop.
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
class ClientList < ActiveRecord::Base | |
belongs_to :organization | |
has_many :clients, :dependent => :destroy | |
validates_presence_of :organization, :name | |
end | |
Scenario: Show a client list | |
Given I am logged in as a user | |
And the following organizations: | |
|name |depth|toparea_id| | |
|test org |2 |1| | |
|other test biz|2 |2| | |
And the following client_lists: | |
|name |organization| | |
|test list |test org | | |
And I am on the client lists page | |
When I follow "test list" | |
Then I should see "test list Details" | |
And I should see "test org" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment