Permalink
Browse files

. Reorg into a real project structure

  • Loading branch information...
1 parent f5302fd commit 3fd30f59bc267a6d3dedb53f45bd1db7d2463ba0 @kschiess committed Mar 16, 2010
View
@@ -0,0 +1,4 @@
+
+require 'spec/rake/spectask'
+
+Spec::Rake::SpecTask.new
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -225,9 +225,22 @@ def gio(str)
parse('aignoreb').should == 'aignoreb'
end
end
+ context "str('a').as(:a) >> str('b').as(:a)" do
+ attr_reader :parslet
+ before(:each) do
+ @parslet = str('a').as(:a) >> str('b').as(:a)
+ end
+
+ it "should issue a warning that a key is being overwritten in merge" do
+ flexmock(parslet).
+ should_receive(:warn).once
+ end
+ it "should return :a => 'b'" do
+ parslet.parse('ab').should == { :a => 'b' }
+ end
+ end
end
-
describe "combinations thereof (regression)" do
sucess =[
[(str('a').repeat >> str('b').repeat), 'aaabbb']

0 comments on commit 3fd30f5

Please sign in to comment.