spec/lucid/ast/scenario_outline_spec.rb in lucid-0.3.3 vs spec/lucid/ast/scenario_outline_spec.rb in lucid-0.4.0

- old
+ new

@@ -1,18 +1,18 @@ require 'spec_helper' require 'lucid/ast' -require 'lucid/core_ext/string' +require 'lucid/lang_extend' require 'lucid/interface_rb/rb_language' module Lucid module AST - + describe ScenarioOutline do - + before do - @runtime = Lucid::Runtime.new + @runtime = Lucid::ContextLoader.new @runtime.load_code_language('rb') @dsl = Object.new @dsl.extend(Lucid::InterfaceRb::RbLucid) @dsl.Given(/^there are (\d+) tests$/) do |n| @@ -24,11 +24,11 @@ end @dsl.Then(/^there should be (\d+) tests$/) do |n| (@initial - @tested).should == n.to_i end - + @dsl.Then(/^there should be (\d+) tests completed$/) do |n| @tested.should == n.to_i end location = AST::Location.new('test.spec', 19) @@ -67,15 +67,15 @@ ] ) end it 'should replace all variables and call outline once for each table row' do - visitor = TDLWalker.new(@runtime) + visitor = Walker.new(@runtime) visitor.should_receive(:visit_table_row).exactly(3).times @scenario_outline.feature = double.as_null_object @scenario_outline.accept(visitor) end - + end - + end -end \ No newline at end of file +end