spec/cucumber/ast/step_spec.rb in cucumber-0.8.5 vs spec/cucumber/ast/step_spec.rb in cucumber-0.8.6
- old
+ new
@@ -1,6 +1,6 @@
-require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
+require 'spec_helper'
require 'cucumber/step_mother'
require 'cucumber/ast'
require 'cucumber/core_ext/string'
module Cucumber
@@ -46,12 +46,12 @@
step_invocation.instance_variable_get('@multiline_arg').raw.should == [%w{taste_juicy color_green}]
end
it "should replace arguments in py string arg" do
- py_string = PyString.new('taste_<taste> color_<color>')
+ doc_string = DocString.new('taste_<taste> color_<color>')
- step = Step.new(1, 'Given', 'a <color> cucumber', py_string)
+ step = Step.new(1, 'Given', 'a <color> cucumber', doc_string)
invocation_table = Table.new([
%w{color taste},
%w{green juicy}
])