Sha256: 614015790be03b5c672da85aac84875fa3a29eb57f72db8e595188fd70d65e64

Contents?: true

Size: 352 Bytes

Versions: 38

Compression:

Stored size: 352 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'

describe Templater::Generator, '.desc' do
  it "should append text when called with an argument, and return it when called with no argument" do
    @generator_class = Class.new(Templater::Generator)
    
    @generator_class.desc "some text"
    @generator_class.desc.should == "some text"
  end
end

Version data entries

38 entries across 37 versions & 3 rubygems

Version Path
middleman-0.13.1 lib/middleman/vendor/gems/ruby/1.8/gems/templater-1.0.0/spec/generator/desc_spec.rb
middleman-0.13.1 lib/middleman/vendor/gems/ruby/1.9.1/gems/templater-1.0.0/spec/generator/desc_spec.rb
middleman-0.12.2 lib/middleman/vendor/gems/gems/templater-1.0.0/spec/generator/desc_spec.rb
middleman-0.12.1 lib/middleman/vendor/gems/gems/templater-1.0.0/spec/generator/desc_spec.rb
ginst-2009.12.8 vendor/gems/templater-1.0.0/spec/generator/desc_spec.rb
middleman-0.12.0.pre3 lib/middleman/vendor/gems/gems/templater-1.0.0/spec/generator/desc_spec.rb
middleman-0.12.0.pre2 lib/middleman/vendor/gems/gems/templater-1.0.0/spec/generator/desc_spec.rb
middleman-0.12.0.pre lib/middleman/vendor/gems/gems/templater-1.0.0/spec/generator/desc_spec.rb
ginst-2009.11.24 vendor/gems/templater-1.0.0/spec/generator/desc_spec.rb
ginst-2009.11.23 vendor/gems/templater-1.0.0/spec/generator/desc_spec.rb
middleman-0.10.17 vendor/gems/gems/templater-1.0.0/spec/generator/desc_spec.rb
middleman-0.10.16 vendor/gems/gems/templater-1.0.0/spec/generator/desc_spec.rb
middleman-0.10.15 vendor/gems/gems/templater-1.0.0/spec/generator/desc_spec.rb
middleman-0.10.14 vendor/gems/gems/templater-1.0.0/spec/generator/desc_spec.rb
ginst-2.0.1 vendor/gems/templater-1.0.0/spec/generator/desc_spec.rb
ginst-2.0.0 vendor/gems/templater-1.0.0/spec/generator/desc_spec.rb
templater-1.0.0 spec/generator/desc_spec.rb
templater-0.1.2 spec/generator/desc_spec.rb
templater-0.1.3 spec/generator/desc_spec.rb
templater-0.1.5 spec/generator/desc_spec.rb