Sha256: 1a370667c4965bd79a5fdadf7035a2bc812147ff6cec2f0d7a412d04e41eea37
Contents?: true
Size: 596 Bytes
Versions: 3
Compression:
Stored size: 596 Bytes
Contents
require 'spec_helper' module Gisele::Language describe Grammar, 'unit' do it 'parses a single task definition' do expr = <<-UNIT.strip task Task1 end UNIT parse(expr, :unit_def).should eq(expr) end it 'accepts multiple task definitions' do expr = <<-UNIT.strip task Task1 end task Task2 end UNIT parse(expr, :unit_def).should eq(expr) end it 'allows trailing spaces' do expr = <<-UNIT task Task1 end task Task2 end UNIT parse(expr, :unit_def).should eq(expr) end end end
Version data entries
3 entries across 3 versions & 2 rubygems