1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot.git synced 2022-11-09 11:43:51 -05:00
thoughtbot--factory_bot/features/step_definitions/database_steps.rb
2013-01-18 13:58:36 -05:00

9 lines
219 B
Ruby

Then /^I should find the following for the last category:$/ do |table|
table.hashes.first.each do |key, value|
expect(Category.last.attributes[key].to_s).to eq value
end
end
Before do
Category.delete_all
end