Sha256: 2159e8f9ebdbe4bc09c8c4d5e739d35b5c4366f724d62bc1e9fdf3e9f1ee6f18

Contents?: true

Size: 443 Bytes

Versions: 9

Compression:

Stored size: 443 Bytes

Contents

require_relative "../spec_helper"


describe Hippo::Concerns::TrackModifications do

    include TestingModels

    it 'decorates a class' do
        with_testing_models do
            Hippo::User.scoped_to(1) do
                TestModel.tracks_user_modifications
                tm = TestModel.create
                expect(tm.created_by_id).to eq(1)
                expect(tm.updated_by_id).to eq(1)
            end
        end
    end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
hippo-fw-0.9.9 spec/server/concerns/track_modifications_spec.rb
hippo-fw-0.9.8 spec/server/concerns/track_modifications_spec.rb
hippo-fw-0.9.7 spec/server/concerns/track_modifications_spec.rb
hippo-fw-0.9.6 spec/server/concerns/track_modifications_spec.rb
hippo-fw-0.9.5 spec/server/concerns/track_modifications_spec.rb
hippo-fw-0.9.4 spec/server/concerns/track_modifications_spec.rb
hippo-fw-0.9.3 spec/server/concerns/track_modifications_spec.rb
hippo-fw-0.9.2 spec/server/concerns/track_modifications_spec.rb
hippo-fw-0.9.1 spec/server/concerns/track_modifications_spec.rb