Sha256: 2db7b7840e8665245e649df3770c5362079114f5a9874212a92d40d1289d72ab

Contents?: true

Size: 362 Bytes

Versions: 7

Compression:

Stored size: 362 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.2.3 features/step_definitions/dsl/admin_comments_steps.rb
ab_admin-0.2.2 features/step_definitions/dsl/admin_comments_steps.rb
ab_admin-0.2.1 features/step_definitions/dsl/admin_comments_steps.rb
ab_admin-0.2.0 features/step_definitions/dsl/admin_comments_steps.rb
ab_admin-0.1.2 features/step_definitions/dsl/admin_comments_steps.rb
ab_admin-0.1.1 features/step_definitions/dsl/admin_comments_steps.rb
ab_admin-0.1.0 features/step_definitions/dsl/admin_comments_steps.rb