modeset/cmsimple — pull request #29 by jedschneider (2013-09-26 21:59:56+00:00)
Title: Page objects

ok @gvarela @jayzes @jejacks0n I wanted to get some initial impressions on how you guys see this Page Object Model Pattern come together. A couple things: with cucumber you have all your environment isolated in the features folder, here its a subdirectory of spec, so I'm requiring_relative to prevent any namespace conflicts with any like named models in the rails app. likewise it has its own support directory. not sure I like this or want it. So open to suggestions on this. Related, I cant get all the specs aka 'rspec spec' to run at once. obviously a problem. I'm also a little disappointed about the need to be so repetitive in the sequence of events, aka

```
app.edit_page.load(slug: slug)
app.edit_page.edit_content("foo")
app.edit_page.publish_changes
```

but i guess its readable and it is a sequence of steps. I've run into some other limitations in terms of inheritance of the page objects being limited by the class methods that act as hooks on the objects. That is perhaps a limiting factor of this dsl not necessarily the pattern.

open to any and all feedback.