Sha256: bdbfced133199b7df99cfca2a7075262e2abb67cd7d029e2ed6adfb0a95cbf1f

Contents?: true

Size: 502 Bytes

Versions: 7

Compression:

Stored size: 502 Bytes

Contents

ENV['RACK_ENV'] = 'test'

require File.join(File.dirname(__FILE__), '..', '..', 'lib/<%= @gen.wormname %>.rb')

require 'capybara'
require 'capybara/cucumber'
require 'rspec'
require 'cucumber/api_steps'
require 'active_support/core_ext/object/blank'

Capybara.app = <%= @gen.camelname %>

class <%= @gen.camelname %>World
  include Capybara::DSL
  include RSpec::Expectations
  include RSpec::Matchers

  def app
    <%= @gen.camelname %>::App
  end
end

World do
  <%= @gen.camelname %>World.new
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
skellington-0.4.8 lib/templates/features/support/env.rb.eruby
skellington-0.4.6 lib/templates/features/support/env.rb.eruby
skellington-0.4.5 lib/templates/features/support/env.rb.eruby
skellington-0.4.4 lib/templates/features/support/env.rb.eruby
skellington-0.4.3 lib/templates/features/support/env.rb.eruby
skellington-0.4.2 lib/templates/features/support/env.rb.eruby
skellington-0.4.1 lib/templates/features/support/env.rb.eruby