Sha256: 4c1374d991834bdf8193bc5a0f8e679c654c364a98233f15f38457f4f275adfe
Contents?: true
Size: 601 Bytes
Versions: 1
Compression:
Stored size: 601 Bytes
Contents
require "spec_helper" describe "Auto Owner" do before(:each) do @owner = User.create!(:name => "TestUser") @location = Location.new() end after(:each) do @location.destroy @owner.destroy end it "should set the owner correct" do # we set the tag owner @location.tag_owner = @owner # generate the skill list @location.skill_list = "Dance,Read" @location.save! # check if the skills are there @location.skill_list.should eql("Dance,Read") # check if the owner got's the tags as well @owner.owned_taggings.count.should eql(2) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
acts-as-taggable-on-dynamic-0.0.3 | spec/auto_owner_spec.rb |