Sha256: c257e660ba9d6feb28a56cd16736a68663cf0d410d9287765e152a3e49174996

Contents?: true

Size: 533 Bytes

Versions: 44

Compression:

Stored size: 533 Bytes

Contents

require 'active_record'
require 'active_record/acts_as'

class Model < ActiveRecord::Base
end

RSpec.describe ActiveRecord, "Model" do
  subject { Model }

  it { is_expected.to respond_to(:acts_as) }
  it { is_expected.to respond_to(:actable) }
  it { is_expected.to respond_to(:acting_as?) }

  describe "#acting_as?" do
    it "returns false with any arg" do
      expect(subject.acting_as?).to be false
      expect(subject.acting_as?(String)).to be false
      expect(subject.acting_as?(:product)).to be false
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

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