Sha256: 14cc7062d63dabe616291c9f8c08474a02a976448846a4cc95bb51ff8d1798e1

Contents?: true

Size: 354 Bytes

Versions: 20

Compression:

Stored size: 354 Bytes

Contents

require 'spec_helper'

describe NinjaModel::Validation do
  class ValidationModel < NinjaModel::Base
    attribute :testing, :integer
    validates :testing, :numericality => true
  end

  before {
    @obj = ValidationModel.new
  }
  subject { @obj }
  it { should respond_to(:save) }
  it { should respond_to(:valid?) }

  describe 'save' do
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
ninja-model-0.9.3 spec/lib/ninja_model/validation_spec.rb
ninja-model-0.9.2 spec/lib/ninja_model/validation_spec.rb
ninja-model-0.9.1 spec/lib/ninja_model/validation_spec.rb
ninja-model-0.9.0 spec/lib/ninja_model/validation_spec.rb
ninja-model-0.8.1 spec/ninja_model/validation_spec.rb
ninja-model-0.8.0 spec/ninja_model/validation_spec.rb
ninja-model-0.7.3 spec/ninja_model/validation_spec.rb
ninja-model-0.7.2 spec/ninja_model/validation_spec.rb
ninja-model-0.7.1 spec/ninja_model/validation_spec.rb
ninja-model-0.7.0 spec/ninja_model/validation_spec.rb
ninja-model-0.6.2 spec/ninja_model/validation_spec.rb
ninja-model-0.6.1 spec/ninja_model/validation_spec.rb
ninja-model-0.6.0 spec/ninja_model/validation_spec.rb
ninja-model-0.5.7 spec/ninja_model/validation_spec.rb
ninja-model-0.5.6 spec/ninja_model/validation_spec.rb
ninja-model-0.5.5 spec/ninja_model/validation_spec.rb
ninja-model-0.5.4 spec/ninja_model/validation_spec.rb
ninja-model-0.5.3 spec/ninja_model/validation_spec.rb
ninja-model-0.5.2 spec/ninja_model/validation_spec.rb
ninja-model-0.5.1 spec/ninja_model/validation_spec.rb