Sha256: 18998a3675b7db9389df759582e0eeae83966391ea1a7654eff1ea66a35c386d

Contents?: true

Size: 370 Bytes

Versions: 8

Compression:

Stored size: 370 Bytes

Contents

require 'ar_helper'

context 'create new entity with config' do
  before do
    class Entity < ActiveRecord::Base
      sample_filter title: {type: :string}
    end

    Entity.create(title: 'text')
  end

  it 'shoud create user and define params set' do
    expect(Entity.count).to eq(1)
    expect(Entity.filter_params_set).to be_a(SampleFilter::ParamsSet)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sample_filter-0.1.7 spec/models/entities/new_spec.rb
sample_filter-0.1.6 spec/models/entities/new_spec.rb
sample_filter-0.1.5 spec/models/entities/new_spec.rb
sample_filter-0.1.4 spec/models/entities/new_spec.rb
sample_filter-0.1.3 spec/models/entities/new_spec.rb
sample_filter-0.1.2 spec/models/entities/new_spec.rb
sample_filter-0.1.1 spec/models/entities/new_spec.rb
sample_filter-0.1.0 spec/models/entities/new_spec.rb