Sha256: 0ad7e616c3c5ffc703e991addf4edfe174237dcac90ce3540caf3d9a661c6779
Contents?: true
Size: 609 Bytes
Versions: 1
Compression:
Stored size: 609 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 expect(CucumberAnalytics::Parsing.respond_to?(:parse_text)).to be true end it 'can only parse strings' do expect { CucumberAnalytics::Parsing.parse_text(5) }.to raise_error(ArgumentError) expect { CucumberAnalytics::Parsing.parse_text('Feature:') }.to_not raise_error end it 'returns an Array' do result = CucumberAnalytics::Parsing.parse_text('Feature:') expect(result).to be_a(Array) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cucumber_analytics-1.5.2 | spec/unit/parsing_unit_spec.rb |