Sha256: a90b645d4504f3553b0f0cf90d223f9f656d114cc38347392932f5319ca542a8

Contents?: true

Size: 353 Bytes

Versions: 7

Compression:

Stored size: 353 Bytes

Contents

Then /^I should see "(.*?)" comment with author$/ do |comment|
  within('#admin_comments') do
    page.should have_content(comment)
    page.should have_content(@me.name)
  end
end

Given /^comment "(.*?)" exists$/ do |comment|
  AdminComment.create(resource_id: @product.id, resource_type: 'Product', body: comment) do |c|
    c.author = @me
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ab_admin-0.3.6 features/step_definitions/dsl/admin_comments_steps.rb
ab_admin-0.3.5 features/step_definitions/dsl/admin_comments_steps.rb
ab_admin-0.3.4 features/step_definitions/dsl/admin_comments_steps.rb
ab_admin-0.3.3 features/step_definitions/dsl/admin_comments_steps.rb
ab_admin-0.3.2 features/step_definitions/dsl/admin_comments_steps.rb
ab_admin-0.3.1 features/step_definitions/dsl/admin_comments_steps.rb
ab_admin-0.3.0 features/step_definitions/dsl/admin_comments_steps.rb