spec/lucid/ast/specs_spec.rb in lucid-0.3.3 vs spec/lucid/ast/specs_spec.rb in lucid-0.4.0
- old
+ new
@@ -1,22 +1,22 @@
require 'spec_helper'
module Lucid
module AST
- describe Specs do
- let(:specs) { Specs.new }
-
+ describe Spec do
+ let(:spec) { Spec.new }
+
def parse_feature(gherkin)
path = 'specs/test.spec'
- builder = Lucid::Parser::TDLBuilder.new(path)
+ builder = Lucid::Parser::SpecBuilder.new(path)
parser = Gherkin::Parser::Parser.new(builder, true, 'root', false)
parser.parse(gherkin, path, 0)
builder.language = parser.i18n_language
feature = builder.result
- specs.add_feature(feature)
+ spec.add_feature(feature)
end
-
+
it 'has a step_count' do
parse_feature(<<-GHERKIN)
Feature:
Background:
Given step 1
@@ -39,10 +39,10 @@
Examples:
| n |
| 8 |
GHERKIN
- specs.step_count.should == (2 + 3) + (3 * (2 + 2))
+ spec.step_count.should == (2 + 3) + (3 * (2 + 2))
end
end
end
-end
\ No newline at end of file
+end