Sha256: cfd28718628d0d8262f6a2b781727c93228a9b5b495e73f5ae9113b2c122f87e

Contents?: true

Size: 358 Bytes

Versions: 34

Compression:

Stored size: 358 Bytes

Contents

require 'models'
require 'active_record/acts_as/matchers'

RSpec.describe "Custom RSpec matchers" do
  it { expect(Product).to be_actable }
  it { expect(Product.new).to be_actable }

  it { expect(Pen).to act_as(:product) }
  it { expect(Pen).to act_as(Product) }
  it { expect(Pen.new).to act_as(:product) }
  it { expect(Pen.new).to act_as(Product) }
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
active_record-acts_as-5.2.0 spec/rspec_matchers_spec.rb
active_record-acts_as-5.1.0 spec/rspec_matchers_spec.rb
active_record-acts_as-5.0.3 spec/rspec_matchers_spec.rb
active_record-acts_as-5.0.2 spec/rspec_matchers_spec.rb
active_record-acts_as-5.0.1 spec/rspec_matchers_spec.rb
active_record-acts_as-5.0.0 spec/rspec_matchers_spec.rb
active_record-acts_as-4.0.3 spec/rspec_matchers_spec.rb
active_record-acts_as-4.0.2 spec/rspec_matchers_spec.rb
active_record-acts_as-4.0.1 spec/rspec_matchers_spec.rb
active_record-acts_as-4.0.0 spec/rspec_matchers_spec.rb
active_record-acts_as-3.1.0 spec/rspec_matchers_spec.rb
active_record-acts_as-3.0.2 spec/rspec_matchers_spec.rb
active_record-acts_as-3.0.1 spec/rspec_matchers_spec.rb
active_record-acts_as-3.0.0 spec/rspec_matchers_spec.rb
active_record-acts_as-2.5.0 spec/rspec_matchers_spec.rb
active_record-acts_as-2.4.2 spec/rspec_matchers_spec.rb
active_record-acts_as-2.4.1 spec/rspec_matchers_spec.rb
active_record-acts_as-2.4.0 spec/rspec_matchers_spec.rb
active_record-acts_as-2.3.1 spec/rspec_matchers_spec.rb
active_record-acts_as-2.3.0 spec/rspec_matchers_spec.rb