Sha256: d56a983b563f89ae60a8ece6c180e01176f2baaf7972b8c41be19ce8c62b44fd

Contents?: true

Size: 492 Bytes

Versions: 2

Compression:

Stored size: 492 Bytes

Contents

require 'spec_helper'

describe Generators::Partial::None do
  
  it 'is not saved' do
    described_class.new.saved?.should == false
  end
  it "has the right superclass" do
    described_class.should < Generators::Partial::Strategy
  end
  it "returns an empty index" do
    described_class.new.generate_from(:unimportant).should == {}
  end
  describe 'use_exact_for_partial?' do
    it 'returns true' do
      described_class.new.use_exact_for_partial?.should == true
    end
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
picky-2.7.0 spec/lib/generators/partial/none_spec.rb
picky-2.6.0 spec/lib/generators/partial/none_spec.rb