Sha256: 1d34d77c18313e98a45ab52bbd68dfbb9a0be6df7fe7106f437156004b67c6eb

Contents?: true

Size: 362 Bytes

Versions: 9

Compression:

Stored size: 362 Bytes

Contents

require 'spec_helper'

describe ActiveData::Model::Conventions do
  let(:model) { stub_model }

  specify { expect([model].flatten).to eq([model]) }
  specify { expect(model.i18n_scope).to eq(:active_data) }
  specify { expect(model.new).not_to be_persisted }
  specify { expect(model.new).to be_new_record }
  specify { expect(model.new).to be_new_object }
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
active_data-1.2.0 spec/lib/active_data/model/conventions_spec.rb
active_data-1.1.7 spec/lib/active_data/model/conventions_spec.rb
active_data-1.1.6 spec/lib/active_data/model/conventions_spec.rb
active_data-1.1.5 spec/lib/active_data/model/conventions_spec.rb
active_data-1.1.4 spec/lib/active_data/model/conventions_spec.rb
active_data-1.1.3 spec/lib/active_data/model/conventions_spec.rb
active_data-1.1.2 spec/lib/active_data/model/conventions_spec.rb
active_data-1.1.1 spec/lib/active_data/model/conventions_spec.rb
active_data-1.1.0 spec/lib/active_data/model/conventions_spec.rb