spec/fixtures/example/models/epic.rb in brief-1.1.0 vs spec/fixtures/example/models/epic.rb in brief-1.2.0
- old
+ new
@@ -6,13 +6,20 @@
subheading
status String, :in => %w(draft published)
end
content do
- title "h1:first-child"
+ # have to do this so that the user stories section h1 doesnt get confused
+ title "h1:first-of-type"
define_section "User Stories" do
- has_many :user_stories, "h2" => "title", "p:first-child" => "paragraph"
+ # NOT YET Implemented
+ each("h2").is_a :user_story
+
+ each("h2").has(:title => "h2",
+ :paragraph => "p:first-of-type",
+ :components => "p:first-of-type strong"
+ )
end
end
actions do
def custom_action