Sha256: 45eb1cc0cf3ed6beadd43566d5843613b22c8df2c44bc90ba6b2f7b5d3929146

Contents?: true

Size: 594 Bytes

Versions: 60

Compression:

Stored size: 594 Bytes

Contents

require 'test_helper'

class UserstampsTest < Test::Unit::TestCase
  context "userstamping" do
    setup do
      @document = Doc do
        userstamps!
      end
    end

    should "add creator_id key" do
      @document.keys.keys.should include('creator_id')
    end

    should "add updater_id key" do
      @document.keys.keys.should include('updater_id')
    end

    should "add belongs_to creator" do
      @document.associations.keys.should include('creator')
    end

    should "add belongs_to updater" do
      @document.associations.keys.should include('updater')
    end
  end
end

Version data entries

60 entries across 60 versions & 7 rubygems

Version Path
jonbell-mongo_mapper-0.8.6 test/functional/test_userstamps.rb
ign-mongo_mapper-0.8.6.2 test/functional/test_userstamps.rb
ign-mongo_mapper-0.8.6.1 test/functional/test_userstamps.rb
ssherman-mongo_mapper-0.8.6 test/functional/test_userstamps.rb
mongo_mapper-0.8.6 test/functional/test_userstamps.rb
mongo_mapper-0.8.5 test/functional/test_userstamps.rb
honkster-mongo_mapper-0.8.4 test/functional/test_userstamps.rb
mongo_mapper-0.8.4 test/functional/test_userstamps.rb
mongo_mapper-unstable-2010.08.19 test/functional/test_userstamps.rb
mongo_mapper-unstable-2010.08.18 test/functional/test_userstamps.rb
mongo_mapper-unstable-2010.08.17 test/functional/test_userstamps.rb
mongo_mapper-unstable-2010.08.16 test/functional/test_userstamps.rb
mongo_mapper-unstable-2010.08.15 test/functional/test_userstamps.rb
mongo_mapper-unstable-2010.08.14 test/functional/test_userstamps.rb
mongo_mapper-unstable-2010.08.13 test/functional/test_userstamps.rb
mongo_mapper-unstable-2010.08.12 test/functional/test_userstamps.rb
mongo_mapper-unstable-2010.08.11 test/functional/test_userstamps.rb
mongo_mapper-unstable-2010.08.10 test/functional/test_userstamps.rb
mongo_mapper-unstable-2010.08.09 test/functional/test_userstamps.rb
mongo_mapper-0.8.3 test/functional/test_userstamps.rb