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

- old
+ new

@@ -9,22 +9,22 @@ let(:language) { double.as_null_object } before do extend(Lucid::InterfaceRb::RbLucid) - @runtime = Lucid::Runtime.new + @runtime = Lucid::ContextLoader.new @rb = @runtime.load_code_language('rb') $x = $y = nil Before do $x = 2 end Given /y is (\d+)/ do |n| $y = $x * n.to_i end - @visitor = TDLWalker.new(@runtime) + @visitor = Walker.new(@runtime) @feature = double('feature', :visit? => true, :feature_elements => []).as_null_object end it 'should execute Before blocks before background steps' do @@ -120,9 +120,9 @@ lambda{ background.accept(@visitor) }.should_not raise_error background.should be_failed end end - + end end -end \ No newline at end of file +end