Sha256: 086f5a885dbde359126b5491610419457546a6ee4559f1095d1a3cd1e853a3fb

Contents?: true

Size: 546 Bytes

Versions: 1

Compression:

Stored size: 546 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
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
murdoc-0.2.0 spec/murdoc/paragraph_spec.rb