Sha256: 95ffb77bd64b81ec9aaca530b1bc9c3d1374bed912ba58cbac31df43a591b3c4
Contents?: true
Size: 1.33 KB
Versions: 1
Compression:
Stored size: 1.33 KB
Contents
require 'sauerkraut' require 'pry' describe "parsing" do it "parses" do expect {Sauerkraut.run "blah".split}.to raise_error expect {Sauerkraut.run "blah.feature".split}.to raise_error expect {Sauerkraut.run "blah.feature:39".split}.to raise_error expect {Sauerkraut.run "features/test.feature:39".split}.to raise_error expect {Sauerkraut.run "features/test.feature:15".split}.to_not raise_error expect {Sauerkraut.run "features/test.feature:15:".split}.to raise_error expect {Sauerkraut.run "features/test.feature:15:17".split}.to_not raise_error expect {Sauerkraut.run "features/test.feature:15:17 -o ".split}.to raise_error expect {Sauerkraut.run "features/test.feature:15:17 -o aaa.text".split}.to_not raise_error expect {Sauerkraut.run "features/test.feature:15 -o aaa.text".split}.to_not raise_error expect {Sauerkraut.run "features/test.feature:15 -o ".split}.to raise_error expect {Sauerkraut.run "features/blah.feature:15".split}.to raise_error end end describe "output" do it "runtest1" do Sauerkraut.run "features/test.feature:15 -o a.text".split diff=`diff a.text test/runtest1.output` expect(diff).to eq("") end it "runtest2" do Sauerkraut.run "features/test.feature:15:18 -o b.text".split diff=`diff b.text test/runtest2.output` expect(diff).to eq("") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sauerkraut-0.0.3 | spec/sauerkraut_spec.rb |