Questions tagged [miniskirt]
4 questions
2
votes
0 answers
How to create an association in a miniskirt factory?
I'm writing tests with minitest and trying to use miniskirt to handle factories in my rails app. I'm having trouble creating an assocation between my user model and my other models. Since miniskirt does not have Factory#association like factory girl…

Lee McAlilly
- 9,084
- 12
- 60
- 94
0
votes
1 answer
How to test Rails Engine models with miniskirt?
I've run into a snag while trying to test a Rails 4 engine using miniskirt.
I have a model test set up in test/models/job_manager/job_test.rb:
require 'test_helper'
module JobManager
describe Job do
before do
@job = Factory.build(:job)
…

partydrone
- 507
- 4
- 15
0
votes
1 answer
Loading miniskirt with Spork TestUnit
I really like Miniskirt and Minitest but I am having issues loading the factories.rb file on each run using spork server. It goes:
cannot load such file -- factories (LoadError)
My factories.rb file is located in the /test directory along with my…

chourobin
- 4,004
- 4
- 35
- 48
0
votes
1 answer
Rails miniskirt duplicates on second run
I am currently running miniskirt and minitest in a very basic rails 3.2 app. The problem I am having is that if I declare two "it" tests within the same "describe" clause the miniskirt data in the setup method gets created twice. I am using the…

codehugger
- 629
- 5
- 16