Skip to content

Instantly share code, notes, and snippets.

@coderxin
Created August 12, 2015 09:51
Show Gist options
  • Save coderxin/1cb3adae91ee324a8f9a to your computer and use it in GitHub Desktop.
Save coderxin/1cb3adae91ee324a8f9a to your computer and use it in GitHub Desktop.
Failures:
1) Pricing should require circle_vehicle_id to be set
Failure/Error: it { is_expected.to validate_presence_of(field) }
Expected errors to include "muss ausgefüllt werden" when circle_vehicle_id is set to nil,
got no errors
# ./spec/support/model_macros.rb:9:in `block (2 levels) in validates_presence_of'
# ./spec/spec_helper.rb:114:in `block (3 levels) in <top (required)>'
# /Users/andrew/.rvm/gems/ruby-2.2.2@car_share/gems/i18n-0.7.0/lib/i18n.rb:257:in `with_locale'
# ./spec/spec_helper.rb:114:in `block (2 levels) in <top (required)>'
Finished in 9 minutes 39 seconds (files took 15.48 seconds to load)
6466 examples, 1 failure, 2 pending
Failed examples:
rspec ./spec/models/pricing_spec.rb:1 # Pricing should require circle_vehicle_id to be set
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment