Sha256: ed63cbfdc92ab500298b6f0b009aa8fa64c13595e3dc5e6086d469c3599d9dd6

Contents?: true

Size: 430 Bytes

Versions: 13

Compression:

Stored size: 430 Bytes

Contents

# frozen_string_literal: false

require 'spec_helper'

describe 'yard Sinclair::Model#for' do
  it 'Creating a Simple model' do
    car = Car.new(brand: :ford, model: :T)

    expect(car.brand).to eq(:ford)
    expect(car.model).to eq(:T)
  end

  it 'Creating a model with default values and writter' do
    job = Job.new

    expect(job.state).to eq(:starting)
    job.state = :done
    expect(job.state).to eq(:done)
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
sinclair-2.1.1 spec/integration/yard/sinclair/model_spec.rb
sinclair-2.1.0 spec/integration/yard/sinclair/model_spec.rb
sinclair-2.0.1 spec/integration/yard/sinclair/model_spec.rb
sinclair-2.0.0 spec/integration/yard/sinclair/model_spec.rb
sinclair-1.16.3 spec/integration/yard/sinclair/model_spec.rb
sinclair-1.16.2 spec/integration/yard/sinclair/model_spec.rb
sinclair-1.16.1 spec/integration/yard/sinclair/model_spec.rb
sinclair-1.16.0 spec/integration/yard/sinclair/model_spec.rb
sinclair-1.15.0 spec/integration/yard/sinclair/model_spec.rb
sinclair-1.14.2 spec/integration/yard/sinclair/model_spec.rb
sinclair-1.14.1 spec/integration/yard/sinclair/model_spec.rb
sinclair-1.14.0 spec/integration/yard/sinclair/model_spec.rb
sinclair-1.13.0 spec/integration/yard/sinclair/model_spec.rb