Sha256: 4d1eb658dbc7e410a570646b5dc0be48c68d12232949d7269fd2526f0a586f25
Contents?: true
Size: 571 Bytes
Versions: 3
Compression:
Stored size: 571 Bytes
Contents
require 'spec_helper' SimpleCov.command_name('Parsing') unless RUBY_VERSION.to_s < '1.9.0' describe 'Parsing, Unit' do it 'can parse text - #parse_text' do CukeModeler::Parsing.should respond_to(:parse_text) end it 'can only parse strings' do expect{CukeModeler::Parsing.parse_text(5)}.to raise_error(ArgumentError) expect{CukeModeler::Parsing.parse_text('Feature:')}.to_not raise_error end it 'returns an Array' do result = CukeModeler::Parsing.parse_text('Feature:') result.is_a?(Array).should be_true end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cuke_modeler-0.1.0 | spec/unit/parsing_unit_spec.rb |
cuke_modeler-0.0.2 | spec/unit/parsing_unit_spec.rb |
cuke_modeler-0.0.1 | spec/unit/parsing_unit_spec.rb |