Sha256: f4dedbcfe8beca08aeb4c3fa5e5039cc584c4f3f63676ad7a1902b15edb3d160

Contents?: true

Size: 740 Bytes

Versions: 4

Compression:

Stored size: 740 Bytes

Contents

Given /^a published entry$/ do
  Entry.make!(:published)
end

Then /^the entry should be a draft$/ do
  entry = @entry || Entry.last
  entry.draft.should be_true
end

Then /^I should not see the entry$/ do
  entry = @entry || Entry.last
  steps %Q{
    And I should not see "#{entry.title}"
  }
end

When /^I follow the title of the entry$/ do
  entry = @entry || Entry.last
  steps %Q{
    And I follow "#{entry.title}"
  }
end

Then /^I should see the entry$/ do
  entry = @entry || Entry.last
  steps %Q{
    And I should see "#{entry.title}"
    And I should see "#{entry.body(:source)}"
  }
end

Then /^the entry should have (\d+) comments?$/ do |count|
  entry = @entry || Entry.last
  entry.comments.count.should eql(count.to_i)
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jabe-0.5.3 features/step_definitions/entry_steps.rb
jabe-0.5.2 features/step_definitions/entry_steps.rb
jabe-0.5.1 features/step_definitions/entry_steps.rb
jabe-0.5.0 features/step_definitions/entry_steps.rb