Sha256: 4c4997a629ff11352791cd93dbd4bf95aa52646b06f37339916e4fe78e6291f6

Contents?: true

Size: 726 Bytes

Versions: 4

Compression:

Stored size: 726 Bytes

Contents

require 'spec_helper'

describe BibleReferenceParser do
  specify "the 'parse' method should parse books" do
    books = BibleReferenceParser.parse("Genesis 1:1, Matthew 1:1")
    books.length.should eql 2    
  end
  
  specify "the 'parse_books' method should parse books" do
    books = BibleReferenceParser.parse_books("Genesis 1:1, Matthew 1:1")
    books.length.should eql 2    
  end
  
  specify "the 'parse_chapters' method should parse books" do
    chapters = BibleReferenceParser.parse_chapters("1-3, 7:15")
    chapters.length.should eql 4   
  end
  
  specify "the 'parse_verses' method should parse books" do
    verses = BibleReferenceParser.parse_verses("1-10, 20")
    verses.length.should eql 11
  end 
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bible_reference_parser-0.1.4 spec/parser_spec.rb
bible_reference_parser-0.1.3 spec/parser_spec.rb
bible_reference_parser-0.1.2 spec/parser_spec.rb
bible_reference_parser-0.1.1 spec/parser_spec.rb