Sha256: b44cbc5a02a8a15a19a201309931a700dce868c162fae9709dd3e7da9490e566

Contents?: true

Size: 248 Bytes

Versions: 9

Compression:

Stored size: 248 Bytes

Contents

Given /^There are blogs$/ do
  create_blogs
end

def create_blogs(blogable = nil)
  blogable ||= Factory(:user)
  blog = Factory(:blog, :blogable => blogable)
  child = Factory(:blog, :blogable => blogable)
  child.move_to_child_of(blog)
  blog
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
muck-blogs-0.1.8 test/rails_root/features/step_definitions/comment_steps.rb
muck-blogs-0.1.7 test/rails_root/features/step_definitions/comment_steps.rb
muck-blogs-0.1.6 test/rails_root/features/step_definitions/comment_steps.rb
muck-blogs-0.1.5 test/rails_root/features/step_definitions/comment_steps.rb
muck-blogs-0.1.4 test/rails_root/features/step_definitions/comment_steps.rb
muck-blogs-0.1.1 test/rails_root/features/step_definitions/comment_steps.rb
muck-blogs-0.1.2 test/rails_root/features/step_definitions/comment_steps.rb
muck-blogs-0.1.3 test/rails_root/features/step_definitions/comment_steps.rb
muck-blogs-0.1.0 test/rails_root/features/step_definitions/comment_steps.rb