Sha256: 7913dd4153101a9326c1a78955de5791602f3e6aa0ba3fb690d65212fb6e89f6

Contents?: true

Size: 554 Bytes

Versions: 34

Compression:

Stored size: 554 Bytes

Contents

# encoding: utf-8
#
require 'spec_helper'

describe Picky::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

34 entries across 34 versions & 1 rubygems

Version Path
picky-3.5.3 spec/lib/generators/similarity/none_spec.rb
picky-3.5.2 spec/lib/generators/similarity/none_spec.rb
picky-3.5.1 spec/lib/generators/similarity/none_spec.rb
picky-3.5.0 spec/lib/generators/similarity/none_spec.rb
picky-3.4.3 spec/lib/generators/similarity/none_spec.rb
picky-3.4.2 spec/lib/generators/similarity/none_spec.rb
picky-3.4.1 spec/lib/generators/similarity/none_spec.rb
picky-3.4.0 spec/lib/generators/similarity/none_spec.rb
picky-3.3.3 spec/lib/generators/similarity/none_spec.rb
picky-3.3.2 spec/lib/generators/similarity/none_spec.rb
picky-3.3.1 spec/lib/generators/similarity/none_spec.rb
picky-3.3.0 spec/lib/generators/similarity/none_spec.rb
picky-3.2.0 spec/lib/generators/similarity/none_spec.rb
picky-3.1.13 spec/lib/generators/similarity/none_spec.rb
picky-3.1.12 spec/lib/generators/similarity/none_spec.rb
picky-3.1.11 spec/lib/generators/similarity/none_spec.rb
picky-3.1.10 spec/lib/generators/similarity/none_spec.rb
picky-3.1.9 spec/lib/generators/similarity/none_spec.rb
picky-3.1.8 spec/lib/generators/similarity/none_spec.rb
picky-3.1.7 spec/lib/generators/similarity/none_spec.rb