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

- old
+ new

@@ -3,24 +3,24 @@ module Lucid module AST describe Feature do include TDLFactory - + it 'should convert to a symbolic expression' do - runtime = Lucid::Runtime.new + runtime = Lucid::ContextLoader.new runtime.load_code_language('rb') dsl = Object.new dsl.extend Lucid::InterfaceRb::RbLucid - + feature = create_feature(dsl) if Lucid::WINDOWS feature_file_path = 'specs\\test.spec' else feature_file_path = 'specs/test.spec' end - + feature.to_sexp.should == [ :feature, feature_file_path, 'Testing TDL', @@ -46,11 +46,11 @@ [:step_invocation, 12, 'Given', 'a non-passing step']] ] end it 'should store operating system specific file paths' do - runtime = Lucid::Runtime.new + runtime = Lucid::ContextLoader.new runtime.load_code_language('rb') dsl = Object.new dsl.extend Lucid::InterfaceRb::RbLucid feature = create_feature(dsl) @@ -58,9 +58,9 @@ feature.file.should == 'specs\test.spec' else feature.file.should == 'specs/test.spec' end end - + end end -end \ No newline at end of file +end