Sha256: e3260fff94d5fae023b149caee9a230c0709c91e8297079120ae9033eb446241

Contents?: true

Size: 675 Bytes

Versions: 18

Compression:

Stored size: 675 Bytes

Contents

require File.join(File.dirname(__FILE__), "..", "spec_helper")

module Wally
  describe ParsesFeatures do
    it "parses feature files" do
      feature = "Feature: Do stuff!"
      ParsesFeatures.new.parse(feature).should == {
        "keyword"     => "Feature",
        "name"        => "Do stuff!",
        "line"        => 1,
        "description" => "",
        "id"          => "do-stuff!",
        "uri"         => nil
      }
    end

    it "raises nice errors" do
      feature = "!WEFFW"
      error = nil
      begin
        ParsesFeatures.new.parse(feature)
      rescue Exception => e
        error = e
      end
      error.should_not be_nil
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
wally-0.0.47 spec/wally/parses_features_spec.rb
wally-0.0.46 spec/wally/parses_features_spec.rb
wally-0.0.45 spec/wally/parses_features_spec.rb
wally-0.0.44 spec/wally/parses_features_spec.rb
wally-0.0.43 spec/wally/parses_features_spec.rb
wally-0.0.42 spec/wally/parses_features_spec.rb
wally-0.0.41 spec/wally/parses_features_spec.rb
wally-0.0.40 spec/wally/parses_features_spec.rb
wally-0.0.39 spec/wally/parses_features_spec.rb
wally-0.0.38 spec/wally/parses_features_spec.rb
wally-0.0.37 spec/wally/parses_features_spec.rb
wally-0.0.36 spec/wally/parses_features_spec.rb
wally-0.0.35 spec/wally/parses_features_spec.rb
wally-0.0.34 spec/wally/parses_features_spec.rb
wally-0.0.33 spec/wally/parses_features_spec.rb
wally-0.0.32 spec/wally/parses_features_spec.rb
wally-0.0.31 spec/wally/parses_features_spec.rb
wally-0.0.30 spec/wally/parses_features_spec.rb