Sha256: 20329f306e85dd65d80c55305ea7aac687aaa302cd3ceb590d001b712d0919eb

Contents?: true

Size: 317 Bytes

Versions: 2

Compression:

Stored size: 317 Bytes

Contents

module Turnip
  module Loader
    def load(*a, &b)
      if a.first.end_with?('.feature')
        begin
          require 'spec_helper'
        rescue LoadError
        end
        Turnip::StepLoader.load_steps
        Turnip.run(Turnip::FeatureFile.new(a.first))
      else
        super
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
turnip-0.3.1 lib/turnip/loader.rb
turnip-0.3.0 lib/turnip/loader.rb