Sha256: b89a726998b55ac20d4d113002ab25527265f726ce88345b272a06383ee62a9e

Contents?: true

Size: 455 Bytes

Versions: 5

Compression:

Stored size: 455 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
      FactoryGirl.create :pose_word
      PoseWord.remove_unused_words
      PoseWord.count.should == 0
    end
    
    it "doesn't remove used words" do
      snippet = FactoryGirl.create :posable_one
      PoseWord.remove_unused_words
      PoseWord.count.should > 0
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pose-1.2.0 spec/pose_word_spec.rb
pose-1.1.3 spec/pose_word_spec.rb
pose-1.1.2 spec/pose_word_spec.rb
pose-1.1.1 spec/pose_word_spec.rb
pose-1.1.0 spec/pose_word_spec.rb