Sha256: 7794e25f475de0a272ec0e93eb48c4fda84d91cedb99f925726407771c64cb31

Contents?: true

Size: 538 Bytes

Versions: 2

Compression:

Stored size: 538 Bytes

Contents

require 'spec_helper'

describe Turnip::FeatureFile do
  let(:file_name) {File.expand_path('../examples/with_comments.feature', File.dirname(__FILE__))}
  let(:feature_file) {Turnip::FeatureFile.new(file_name)}
  
  describe '.feature_name' do
    it 'allows access to short name for the feature based on the file name' do
      feature_file.feature_name.should == 'with_comments'
    end
  end
  
  describe '.content' do
    it 'allows access to the content in the feature file' do
      feature_file.content.should be
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
turnip-0.3.1 spec/feature_file_spec.rb
turnip-0.3.0 spec/feature_file_spec.rb