I have this feature test (Store model have a uniqueness validation): When i run the test, randomly fails: My blueprint is (follow the machinist ...
I have this feature test (Store model have a uniqueness validation): When i run the test, randomly fails: My blueprint is (follow the machinist ...
I'm writing unit and integration tests against an Ember.js application, and I can't connect to the server when the application is under test. This mea ...
so I'm trying to write some controller tests for quite complex nested form. I have machinist which works fine for model tests but I can't get a nested ...
Fixtures, factories, ... etc don't execute the real create() method. For instance, when an user is created, I generate a Preference object for him. Bu ...
This morning I am having the following error: Specs are so damn slow (even with spork) so they are useless. It takes 9 minutes to run 20 examples i ...
I've just upgraded to Rails 3.2.1 with Ruby 1.9.3-p0 and I'm using Machinist 2.0. Before updating a large project all my tests passed. The problem I"m ...
I'm working on an old Rails 2.3.8 which doesn't have any testing and I'm trying to add some tests using rspec with machinist to the app. I've install ...
This is a simplified example of what I'm trying to do... Suppose I had an object Person: I want to be able to do something like this: However, ...
Environment: Ruby 1.9.2, Rails 3.1, Machinist 2 I have a Transaction model which belongs to both an Account and Category. I would like to make Mac ...
This is my spec code that isn't working: The spec fails on the 2nd User.find even though that user object has an id. If I remove the 'describe "bl ...
I have a blueprint: "context" is an attribute of Model, but it is also a reserved word of RSpec. When I try to make and object I get ArgumentError ...
I have a validates_uniqueness_of validation on my model: I'm using Machinist and the above validation fails any time I run a test with I'm just ...
I've run into a very confusing problem... All my tests pass when i run them in isolation. When I run them like rake test, after my integration tests ...
I'm working on a rails application on which the models are plain ruby classes without any persistence layer (no active record or similar). I want to t ...
I'm running testunit (with machinist) and getting this very strange result when I run the ruby debugger A snippet of my Document/DocumentItem model ...
I'm trying to build factories for relatively complex models. I have a Pressroom model, which belongs to Source, and Source has many Pressrooms. When ...
I'm using Rails 3, machinist 2, cucumber and rspec all together and have two blueprints.rb files. One in the spec directory and one in the features/su ...
Using Machinist, is there some way one can define blueprints such that they inherit attributes from other blueprints? I've looked at all the documenta ...
In my Rails 3 application, I have a User model with the following fields I'm using machinist 2 to generate mock data, its blueprint looks like A ...
If I want to create and instance using "create" build strategy and then want to use "attributes_for" build strategy for verification, is it possible t ...