Sha256: 4c78bf84a40f8272e6e62b09c172dcf040cf56398479f07fa45810f75c64d145

Contents?: true

Size: 595 Bytes

Versions: 9

Compression:

Stored size: 595 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
    CucumberAnalytics::Parsing.should respond_to(:parse_text)
  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:')
    result.is_a?(Array).should be_true
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cucumber_analytics-1.5.1 spec/unit/parsing_unit_spec.rb
cucumber_analytics-1.5.0 spec/unit/parsing_unit_spec.rb
cucumber_analytics-1.4.2 spec/unit/parsing_unit_spec.rb
cucumber_analytics-1.4.1 spec/unit/parsing_unit_spec.rb
cucumber_analytics-1.4.0 spec/unit/parsing_unit_spec.rb
cucumber_analytics-1.3.0 spec/unit/parsing_unit_spec.rb
cucumber_analytics-1.2.0 spec/unit/parsing_unit_spec.rb
cucumber_analytics-1.1.1 spec/unit/parsing_unit_spec.rb
cucumber_analytics-1.0.0 spec/unit/parsing_unit_spec.rb