Sha256: aa4e403ef410dcd84d324e126a20c32f851c8e0b8b4542c0b7c7aa3859b91e7e
Contents?: true
Size: 603 Bytes
Versions: 3
Compression:
Stored size: 603 Bytes
Contents
require 'spec_helper' SimpleCov.command_name('Step') unless RUBY_VERSION.to_s < '1.9.0' describe 'Step' do it 'knows its parent element' do file_path = "#{@default_file_directory}/#{@default_feature_file_name}" File.open(file_path, "w") { |file| file.puts('Feature: Test feature') file.puts(' Scenario: Test scenario') file.puts(' Given a test step') } file = CucumberAnalytics::ParsedFile.new(file_path) scenario = file.feature.tests.first step = scenario.steps.first step.parent_element.should equal scenario end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cucumber_analytics-0.0.9 | spec/step_spec.rb |
cucumber_analytics-0.0.8 | spec/step_spec.rb |
cucumber_analytics-0.0.7 | spec/step_spec.rb |