Sha256: 702b637acf00196b7a787e200af7561c5308a932c087a14b8f0688bdbd294339
Contents?: true
Size: 692 Bytes
Versions: 12
Compression:
Stored size: 692 Bytes
Contents
require "spec_helper" describe Murdoc::Paragraph do describe "#initialize" do it "should set source" do described_class.new("A", "").source.should == "A" end it "should set annotation" do described_class.new("", "B").annotation.should == "B" end it "should optionally set source_type" do described_class.new("", "", 0, :ruby).source_type.should == "ruby" end it "should optionally set starting line" do described_class.new("", "", 666, :ruby).starting_line.should == 666 end it "should optionally set options" do described_class.new("", "", 666, :ruby, {:foo => :bar}).options.should == {:foo => :bar} end end end
Version data entries
12 entries across 12 versions & 1 rubygems