In your model, if you have
{% highlight ruby %}
accepts_nested_attributes_for :attachments
{% endhighlight %}
And you limit the accessible attributes with something like
{% highlight ruby %} …
Given you have two blueprints for users: {% highlight ruby %} User.blueprint {} User.blueprint(:admin) {} {% endhighlight %} Then this is how you reference them from a Cucumber feature definition: {% …
I spent way too much time today figuring out why this doesn't work as expected: {% highlight ruby %} def test_something get :list, nil, {:user_id => 1} get :list, nil, {:user_id => 2} end {% …