mirror of
https://github.com/thoughtbot/factory_bot.git
synced 2022-11-09 11:43:51 -05:00
9 lines
219 B
Ruby
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
|