Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix broken code when using :pregenerated. Fixes #10

  • Loading branch information...
commit 238a9c3573e9c6f75010de06ad00f7b1ae7a2839 1 parent b8fb1f8
Jason Roelofs authored
Showing with 8,092 additions and 1 deletion.
  1. +1 −1  lib/rbgccxml/parser.rb
  2. +8,085 −0 spec/parsed/Adder.xml
  3. +6 −0 spec/parser_test.rb
View
2  lib/rbgccxml/parser.rb
@@ -8,7 +8,7 @@ class Parser
def initialize(config = {})
if config[:pregenerated]
- @xml_file = config.delete[:pregenerated]
+ @xml_file = config.delete(:pregenerated)
else
require 'gccxml'
@gccxml = GCCXML.new
View
8,085 spec/parsed/Adder.xml
8,085 additions, 0 deletions not shown
View
6 spec/parser_test.rb
@@ -2,6 +2,12 @@
describe "Default parsing configuration" do
+ specify "can be given a raw XML file" do
+ lambda do
+ RbGCCXML.parse_xml(full_dir("parsed/Adder.xml"))
+ end.should_not raise_error
+ end
+
specify "can parse a single header file" do
lambda do
RbGCCXML.parse(full_dir("headers/Adder.h"))
Please sign in to comment.
Something went wrong with that request. Please try again.