Sha256: 8a09cc53db9e8037efaf69a022015b7ada459193eb0a1d8628adfdc55f7ee846

Contents?: true

Size: 436 Bytes

Versions: 4

Compression:

Stored size: 436 Bytes

Contents

def post_should_have_status(status)
  within ".attributes_table" do
    page.should have_content(status)
  end
end

def login_and_navigate_to_post(user, post)
  login_as user
  visit admin_category_post_path(post.category, post)
end

def has_action_item(item)
  within ".action_items" do
    page.should have_link(item)
  end
end

def has_no_action_item(item)
  within ".action_items" do
    page.should_not have_link(item)
  end  
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
rs-active_admin-state_machine-0.2.1 spec/support/post_helpers.rb
rs-active_admin-state_machine-0.2.0 spec/support/post_helpers.rb
active_admin-state_machine-0.1.1 spec/support/post_helpers.rb
active_admin-state_machine-0.1.0 spec/support/post_helpers.rb