Sha256: a4132fea1f5812c71bd752dd693974656ee93060ae52c522229a7a5d2dde1c14
Contents?: true
Size: 540 Bytes
Versions: 1
Compression:
Stored size: 540 Bytes
Contents
# encoding: utf-8 require 'jldrill/model/Item' require 'jldrill/model/items/Vocabulary' module JLDrill describe Item do it "should be able to swap the positions of items" do item1 = Item.create("/This is item one/Position: 1/") item2 = Item.create("/This is item two/Position: 2/") item1.position.should be(1) item2.position.should be(2) item1.swapWith(item2) item1.position.should be(2) item2.position.should be(1) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jldrill-0.6.0.1 | spec/jldrill/model/Item_spec.rb |