spec/nifval_spec.rb in nifval-0.2.1 vs spec/nifval_spec.rb in nifval-0.2.2
- old
+ new
@@ -1,10 +1,10 @@
require 'spec_helper'
class Test
include ActiveModel::Validations
- validates :testfield, :nif => true
+ validates :testfield, nif: true
attr_accessor :testfield
def initialize testfield
@testfield = testfield