Sha256: 3a6970bc0861ab857d92f643375902d574caa7cea3fc02cca3bcff6e8a40292f

Contents?: true

Size: 558 Bytes

Versions: 24

Compression:

Stored size: 558 Bytes

Contents

# encoding: utf-8
#
require 'spec_helper'

describe Internals::Generators::Similarity::None do

  before(:each) do
    @similarity = described_class.new
  end
  
  describe "saved?" do
    it "returns the right answer" do
      @similarity.saved?.should == false
    end
  end
  
  describe 'encode' do
    it 'should always return nil' do
      @similarity.encoded(:whatever).should == nil
    end
  end

  describe 'generate_from' do
    it 'should return an empty hash, always' do
      @similarity.generate_from(:anything).should == {}
    end
  end

end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
picky-2.5.2 spec/lib/internals/generators/similarity/none_spec.rb
picky-2.5.1 spec/lib/internals/generators/similarity/none_spec.rb
picky-2.5.0 spec/lib/internals/generators/similarity/none_spec.rb
picky-2.4.3 spec/lib/internals/generators/similarity/none_spec.rb
picky-2.4.2 spec/lib/internals/generators/similarity/none_spec.rb
picky-2.4.1 spec/lib/internals/generators/similarity/none_spec.rb
picky-2.4.0 spec/lib/internals/generators/similarity/none_spec.rb
picky-2.3.0 spec/lib/internals/generators/similarity/none_spec.rb
picky-2.2.1 spec/lib/internals/generators/similarity/none_spec.rb
picky-2.2.0 spec/lib/internals/generators/similarity/none_spec.rb
picky-2.1.2 spec/lib/internals/generators/similarity/none_spec.rb
picky-2.1.1 spec/lib/internals/generators/similarity/none_spec.rb
picky-2.1.0 spec/lib/internals/generators/similarity/none_spec.rb
picky-2.0.0 spec/lib/internals/generators/similarity/none_spec.rb
picky-2.0.0.pre3 spec/lib/internals/generators/similarity/none_spec.rb
picky-2.0.0.pre2 spec/lib/internals/generators/similarity/none_spec.rb
picky-2.0.0.pre1 spec/lib/internals/generators/similarity/none_spec.rb
picky-1.5.4 spec/lib/internals/generators/similarity/none_spec.rb
picky-1.5.3 spec/lib/internals/generators/similarity/none_spec.rb
picky-1.5.2 spec/lib/internals/generators/similarity/none_spec.rb