lib/cucumber/sinatra/templates/features/support/env.rbt in cucumber-sinatra-0.2.2 vs lib/cucumber/sinatra/templates/features/support/env.rbt in cucumber-sinatra-0.2.3
- old
+ new
@@ -6,12 +6,16 @@
require 'capybara/cucumber'
require 'spec'
<%= app_class -%>.set(:environment, :test)
-World do
- Capybara.app = <%= app_class -%>
+Capybara.app = <%= app_class %>
+class <%= app_class -%>World
include Capybara
include Spec::Expectations
include Spec::Matchers
+end
+
+World do
+ <%= app_class -%>World.new
end