Skip to content

Instantly share code, notes, and snippets.

@ivanoats
Created May 11, 2010 21:30
Show Gist options
  • Save ivanoats/397914 to your computer and use it in GitHub Desktop.
Save ivanoats/397914 to your computer and use it in GitHub Desktop.
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