I see different results when running 'rake test' and when running 'rake
When running all tests with 'rake test' all tests pass.
When running 'rake test:integration' I have a failed test because my
model fails to validate inclusion of an attribute before saving.
My model looks something like:
class Order < ActiveRecord::Base
validates :payment_type, :inclusion => PaymentType.all
PaymentType is a lookup table, which I have a fixture for.
When debugging the save method in the Order model I see that it fails
the inclusion validation (again, only when running just the integration
evaluates to 'true'.
Any ideas why it fails when running only integration tests?