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

10 lines
219 B
Ruby
Raw Normal View History

2012-07-27 14:10:38 -04:00
Then /^I should find the following for the last category:$/ do |table|
table.hashes.first.each do |key, value|
2013-01-18 13:27:57 -05:00
expect(Category.last.attributes[key].to_s).to eq value
2009-09-15 15:47:47 -04:00
end
end
2009-09-15 15:54:21 -04:00
Before do
Category.delete_all
2009-09-15 15:54:21 -04:00
end