Sha256: fbb0557b4d55ff4308b4c33d29a584c298e8f6f49d3aac2b75e0465c95788e43

Contents?: true

Size: 433 Bytes

Versions: 9

Compression:

Stored size: 433 Bytes

Contents

require 'spec_helper'

describe PoseWord do
  
  before :all do
    PoseWord.delete_all
  end
  
  describe 'remove_unused_words' do

    it 'removes unused words' do
      Factory :pose_word
      PoseWord.remove_unused_words
      PoseWord.count.should == 0
    end
    
    it "doesn't remove used words" do
      snippet = Factory :posable_one
      PoseWord.remove_unused_words
      PoseWord.count.should > 0
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pose-1.0.0 spec/pose_word_spec.rb
pose-0.3 spec/pose_word_spec.rb
pose-0.2.6 spec/pose_word_spec.rb
pose-0.2.5 spec/pose_word_spec.rb
pose-0.2.4 spec/pose_word_spec.rb
pose-0.2.3 spec/pose_word_spec.rb
pose-0.2.2 spec/pose_word_spec.rb
pose-0.2.1 spec/pose_word_spec.rb
pose-0.2 spec/pose_word_spec.rb