Previously in Factory girl, we could define sequences like so: # /spec/factories.rb FactoryGirl.define do
I\'m trying to write a spec rake task to load bundler, but regardless of loading bundler or not I get:
Using Rails 3.0.5, RSpec 2 and Capybara 0.4.1.2 and I\'am trying to write a controller spec for my SessionsController#new action.
I want to test that a staff member is associated with a company in my rspec controller tests. I would like to end up with this in my create action of the staff controller:
I have an spec like so: require \'spec_helper\' describe IncomingMailsController do include Devise开发者_运维百科::TestHelpers
I have the following models: Users (id) Project (id, name) Roles (id, title) Permissions (user_id, role_id, project_id)
I\'m trying to post to my controller in RSPEC, see anything wrong with this? It\'s failing w/o error:
I am seeing an error that is only dependent on the location of the line: should change(Relationship, :count).by(-1)
I have a rsepc test for my controller, in my test, I have the following code snippet: ... params= {SOME PARAMETERS}
I\'m trying to do this: describe \"should fail on create if the name is shorter than 5 characters\" do