cucumber-sinatra 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES.md CHANGED
@@ -1,6 +1,10 @@
1
1
  ChangeLog
2
2
  =========
3
3
 
4
+ # 0.2.4
5
+ * Use the `RACK_ENV` environment variable to set the
6
+ sinatra environment to 'test'. (See issue #1)
7
+
4
8
  # 0.2.3
5
9
  * Create a custom world class to avoid SystemStackError
6
10
  exceptions with capybara.
@@ -7,8 +7,8 @@ Gem::Specification.new do |s|
7
7
  ## If your rubyforge_project name is different, then edit it and comment out
8
8
  ## the sub! line in the Rakefile
9
9
  s.name = 'cucumber-sinatra'
10
- s.version = '0.2.3'
11
- s.date = '2010-07-21'
10
+ s.version = '0.2.4'
11
+ s.date = '2010-09-30'
12
12
  s.rubyforge_project = 'cucumber-sinatra'
13
13
 
14
14
  s.summary = "Initialize a cucumber environment for sinatra"
@@ -1,5 +1,5 @@
1
1
  module Cucumber
2
2
  module Sinatra
3
- VERSION = '0.2.3'
3
+ VERSION = '0.2.4'
4
4
  end
5
5
  end
@@ -1,13 +1,13 @@
1
1
  # Generated by cucumber-sinatra. (<%= Time.now %>)
2
2
 
3
+ ENV['RACK_ENV'] = 'test'
4
+
3
5
  require File.join(File.dirname(__FILE__), '..', '..', '<%= app_file -%>')
4
6
 
5
7
  require 'capybara'
6
8
  require 'capybara/cucumber'
7
9
  require 'spec'
8
10
 
9
- <%= app_class -%>.set(:environment, :test)
10
-
11
11
  Capybara.app = <%= app_class %>
12
12
 
13
13
  class <%= app_class -%>World
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-sinatra
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 3
10
- version: 0.2.3
9
+ - 4
10
+ version: 0.2.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bernd Ahlers
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-21 00:00:00 +02:00
18
+ date: 2010-09-30 00:00:00 +02:00
19
19
  default_executable: cucumber-sinatra
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency