Sha256: 8c61e34dd7904643cc083acead8be8487e1e90d6a46a9ac3b93ef135e04dd967

Contents?: true

Size: 564 Bytes

Versions: 10

Compression:

Stored size: 564 Bytes

Contents

require 'spec_helper'

describe PoseWord do

  describe 'class methods' do
    subject { PoseWord }

    describe '::remove_unused_words' do

      before :each do
        instantiate_objects
        PoseWord.remove_unused_words
      end

      context 'having unused words' do
        let(:instantiate_objects) { FactoryGirl.create :pose_word }
        its(:count) { should == 0 }
      end

      context 'having used words' do
        let(:instantiate_objects) { FactoryGirl.create :posable_one }
        its(:count) { should > 0 }
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
pose-1.3.4 spec/pose_word_spec.rb
pose-1.3.3 spec/pose_word_spec.rb
pose-1.3.2 spec/pose_word_spec.rb
pose-1.3.1 spec/pose_word_spec.rb
pose-1.3 spec/pose_word_spec.rb
pose-1.2.5 spec/pose_word_spec.rb
pose-1.2.4 spec/pose_word_spec.rb
pose-1.2.3 spec/pose_word_spec.rb
pose-1.2.2 spec/pose_word_spec.rb
pose-1.2.1 spec/pose_word_spec.rb