palkan_tula
palkan
AnyFixture
69
using TestProf ::AnyFixture ::DSL
using TestProf ::Ext ::ActiveRecordRefind
shared_context "shared account", account: true do
prepend_before(:all) do
account = fixture(:account) { create :account, name: 'Star Wars' }
funnel = fixture(:funnel) {
create :funnel, account: account, name: 'Tatooine'
}
luke = fixture(:luke) {
create :applicant, funnel: funnel,
name: 'Luke Skywalker', email: '
[email protected]'
}
end
%i[account funnel luke].each { |id| let(id) { fixture(id).refind }
end
http://bit.ly/any-fixture