Sha256: 356fc9d59a40fb45d2f7abeba9f569d89306e2247e8d22234596d10c91e596ff
Contents?: true
Size: 835 Bytes
Versions: 1
Compression:
Stored size: 835 Bytes
Contents
require 'ronin/model/has_description' require 'spec_helper' require 'model/classes/described_model' describe Model::HasDescription do before(:each) do @model = DescribedModel.new end it "should allow the setting of the description" do @model.description = 'test one' @model.description.should == 'test one' end it "should strip leading and tailing white-space" do @model.description = %{ test two } @model.description.should == 'test two' end it "should strip leading and tailing white-space from each line" do @model.description = %{ test three } @model.description.should == "test\nthree" end it "should preserve non-bordering empty lines" do @model.description = %{ test four } @model.description.should == "test\n\nfour" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ronin-0.3.0 | spec/model/has_description_spec.rb |