steak 2.0.0.beta1 → 2.0.0.beta2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -1,7 +1,3 @@
1
- ## TODO
2
- * Rake stats
3
- * Manual test different scenarios: rspec-rails already present, upgrade from Steak-1…
4
-
5
1
  # Steak
6
2
 
7
3
  The delicious combination of RSpec and Capybara for Acceptance BDD
@@ -47,12 +43,12 @@ Basically Steak exists for three reasons:
47
43
 
48
44
  ## Getting Started
49
45
 
50
- _NOTE: The latest version of Steak assumes that you're testing a Rails 3 application, with RSpec 2 and Capybara. For Rails 2, RSpec 1 or Webrat you should use Steak 1.x (or consider upgrading to non-obsolete technologies ;P)_
46
+ _NOTE: The following instructions refer to the development version of Steak which only works for Rails 3, RSpec 2 and Capybara 1.0. The [stable version](https://github.com/cavalle/steak/tree/steak-1), also works for Rails 2, RSpec 1 or Webrat_
51
47
 
52
48
  It's super-easy to get you started. Just add the gem to your `Gemfile`…
53
49
 
54
50
  group :test, :development do
55
- gem 'steak'
51
+ gem 'steak', '>= 2.0.0.beta1'
56
52
  # ...
57
53
 
58
54
  …and then install the gem and run the generator:
@@ -60,9 +56,10 @@ It's super-easy to get you started. Just add the gem to your `Gemfile`…
60
56
  $ bundle
61
57
  $ rails g steak:install
62
58
 
63
- You're now set up! Take a look at the default directory structure you've got under `spec/acceptance`. It will help you organize the helpers and configurations for your acceptance specs.
59
+ You're now set up! Note that Steak is the only dependency you really need, you can safely remove any reference to `capybara`, `rspec-rails` or `rspec` from your `Gemfile`, they will be included by Steak. Also note that, unless previously executed, Steak will run the RSpec generator so you don't need to invoke it.
60
+
61
+ Take a look now at the default directory structure you've got under `spec/acceptance`. It will help you organize the helpers and configurations for your acceptance specs.
64
62
 
65
- Note that Steak is the only dependency you really need, you can safely remove any reference to `capybara`, `rspec-rails` or `rspec` from your `Gemfile`, they will be included by Steak. Also note that, unless previously executed, Steak will run the RSpec generator so you don't need to invoke it.
66
63
 
67
64
  ## Creating and running specs
68
65
 
@@ -1,3 +1,3 @@
1
1
  module Steak
2
- VERSION = '2.0.0.beta1'
2
+ VERSION = '2.0.0.beta2'
3
3
  end
@@ -1,6 +1,6 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
- gem 'rails', '3.1.0.rc1'
3
+ gem 'rails', '3.1.0.rc4'
4
4
 
5
5
  # Bundle edge Rails instead:
6
6
  # gem 'rails', :git => 'git://github.com/rails/rails.git'
@@ -10,6 +10,9 @@ platforms :ruby do
10
10
  end
11
11
 
12
12
  platforms :jruby do
13
+ # the javascript engine for execjs gem
14
+ gem 'therubyrhino'
15
+
13
16
  gem 'activerecord-jdbc-adapter'
14
17
 
15
18
  # As rails --database switch does not support derby, hsqldb, h2 nor mssql
@@ -38,7 +41,7 @@ end
38
41
 
39
42
  # Asset template engines
40
43
  gem 'json'
41
- gem 'sass'
44
+ gem 'sass-rails', "~> 3.1.0.rc"
42
45
  gem 'coffee-script'
43
46
  gem 'uglifier'
44
47
 
@@ -30,13 +30,6 @@ module RailsProject
30
30
  # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
31
31
  # config.i18n.default_locale = :de
32
32
 
33
- # Please note that JavaScript expansions are *ignored altogether* if the asset
34
- # pipeline is enabled (see config.assets.enabled below). Put your defaults in
35
- # app/assets/javascripts/application.js in that case.
36
- #
37
- # JavaScript files you want as :defaults (application.js is always included).
38
- # config.action_view.javascript_expansions[:defaults] = %w(prototype prototype_ujs)
39
-
40
33
  # Configure the default encoding used in templates for Ruby 1.9.
41
34
  config.encoding = "utf-8"
42
35
 
@@ -21,4 +21,7 @@ RailsProject::Application.configure do
21
21
 
22
22
  # Only use best-standards-support built into browsers
23
23
  config.action_dispatch.best_standards_support = :builtin
24
+
25
+ # Do not compress assets
26
+ config.assets.compress = false
24
27
  end
@@ -11,9 +11,11 @@ RailsProject::Application.configure do
11
11
  # Disable Rails's static asset server (Apache or nginx will already do this)
12
12
  config.serve_static_assets = false
13
13
 
14
- # Compress both stylesheets and JavaScripts
14
+ # Compress JavaScripts and CSS
15
+ config.assets.compress = true
16
+
17
+ # Specify the default JavaScript compressor
15
18
  config.assets.js_compressor = :uglifier
16
- config.assets.css_compressor = :scss
17
19
 
18
20
  # Specifies the header that your server uses for sending files
19
21
  # (comment out if your front-end server doesn't support this)
@@ -4,4 +4,4 @@
4
4
  # If you change this key, all old signed cookies will become invalid!
5
5
  # Make sure the secret is at least 30 characters and all random,
6
6
  # no regular words or you'll be exposed to dictionary attacks.
7
- RailsProject::Application.config.secret_token = 'ad1aecc8c76232b49f94176f2eb8817c32a618f2b38f139b2c602876aba4add6cef1f27523a958015b65841fe246c4a900b76702c649a297b0d7a1d4cd0fea8e'
7
+ RailsProject::Application.config.secret_token = 'f655d2c21ac31f382e473191f3a59f7fd59284e7e17f04958b0a8377900051a3c47dbd2c617a7733f55e0ed6ee0b044e8397e82cd38b7647b9662fdf22cf8564'
@@ -1,7 +1,7 @@
1
1
  # Be sure to restart your server when you modify this file.
2
2
  #
3
- # This file contains the settings for ActionController::ParametersWrapper
4
- # which will be enabled by default in the upcoming version of Ruby on Rails.
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
5
 
6
6
  # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
7
  ActionController::Base.wrap_parameters :format => [:json]
@@ -5,7 +5,7 @@ class BrowsingTest < ActionDispatch::PerformanceTest
5
5
  # Refer to the documentation for all available options
6
6
  # self.profile_options = { :runs => 5, :metrics => [:wall_time, :memory]
7
7
  # :output => 'tmp/performance', :formats => [:flat] }
8
-
8
+
9
9
  def test_homepage
10
10
  get '/'
11
11
  end
@@ -1,6 +1,6 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
- gem 'rails', '3.1.0.rc1'
3
+ gem 'rails', '3.1.0.rc4'
4
4
 
5
5
  # Bundle edge Rails instead:
6
6
  # gem 'rails', :git => 'git://github.com/rails/rails.git'
@@ -10,6 +10,9 @@ platforms :ruby do
10
10
  end
11
11
 
12
12
  platforms :jruby do
13
+ # the javascript engine for execjs gem
14
+ gem 'therubyrhino'
15
+
13
16
  gem 'activerecord-jdbc-adapter'
14
17
 
15
18
  # As rails --database switch does not support derby, hsqldb, h2 nor mssql
@@ -38,7 +41,7 @@ end
38
41
 
39
42
  # Asset template engines
40
43
  gem 'json'
41
- gem 'sass'
44
+ gem 'sass-rails', "~> 3.1.0.rc"
42
45
  gem 'coffee-script'
43
46
  gem 'uglifier'
44
47
 
@@ -30,13 +30,6 @@ module RailsProject
30
30
  # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
31
31
  # config.i18n.default_locale = :de
32
32
 
33
- # Please note that JavaScript expansions are *ignored altogether* if the asset
34
- # pipeline is enabled (see config.assets.enabled below). Put your defaults in
35
- # app/assets/javascripts/application.js in that case.
36
- #
37
- # JavaScript files you want as :defaults (application.js is always included).
38
- # config.action_view.javascript_expansions[:defaults] = %w(prototype prototype_ujs)
39
-
40
33
  # Configure the default encoding used in templates for Ruby 1.9.
41
34
  config.encoding = "utf-8"
42
35
 
@@ -21,4 +21,7 @@ RailsProject::Application.configure do
21
21
 
22
22
  # Only use best-standards-support built into browsers
23
23
  config.action_dispatch.best_standards_support = :builtin
24
+
25
+ # Do not compress assets
26
+ config.assets.compress = false
24
27
  end
@@ -11,9 +11,11 @@ RailsProject::Application.configure do
11
11
  # Disable Rails's static asset server (Apache or nginx will already do this)
12
12
  config.serve_static_assets = false
13
13
 
14
- # Compress both stylesheets and JavaScripts
14
+ # Compress JavaScripts and CSS
15
+ config.assets.compress = true
16
+
17
+ # Specify the default JavaScript compressor
15
18
  config.assets.js_compressor = :uglifier
16
- config.assets.css_compressor = :scss
17
19
 
18
20
  # Specifies the header that your server uses for sending files
19
21
  # (comment out if your front-end server doesn't support this)
@@ -4,4 +4,4 @@
4
4
  # If you change this key, all old signed cookies will become invalid!
5
5
  # Make sure the secret is at least 30 characters and all random,
6
6
  # no regular words or you'll be exposed to dictionary attacks.
7
- RailsProject::Application.config.secret_token = 'ad1aecc8c76232b49f94176f2eb8817c32a618f2b38f139b2c602876aba4add6cef1f27523a958015b65841fe246c4a900b76702c649a297b0d7a1d4cd0fea8e'
7
+ RailsProject::Application.config.secret_token = 'f655d2c21ac31f382e473191f3a59f7fd59284e7e17f04958b0a8377900051a3c47dbd2c617a7733f55e0ed6ee0b044e8397e82cd38b7647b9662fdf22cf8564'
@@ -1,7 +1,7 @@
1
1
  # Be sure to restart your server when you modify this file.
2
2
  #
3
- # This file contains the settings for ActionController::ParametersWrapper
4
- # which will be enabled by default in the upcoming version of Ruby on Rails.
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
5
 
6
6
  # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
7
  ActionController::Base.wrap_parameters :format => [:json]
@@ -5,7 +5,7 @@ class BrowsingTest < ActionDispatch::PerformanceTest
5
5
  # Refer to the documentation for all available options
6
6
  # self.profile_options = { :runs => 5, :metrics => [:wall_time, :memory]
7
7
  # :output => 'tmp/performance', :formats => [:flat] }
8
-
8
+
9
9
  def test_homepage
10
10
  get '/'
11
11
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: steak
3
3
  version: !ruby/object:Gem::Version
4
- hash: 62196449
4
+ hash: 62196455
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
9
  - 0
10
10
  - beta
11
- - 1
12
- version: 2.0.0.beta1
11
+ - 2
12
+ version: 2.0.0.beta2
13
13
  platform: ruby
14
14
  authors:
15
15
  - "Luismi Cavall\xC3\xA9"
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-06-05 00:00:00 Z
20
+ date: 2011-06-13 00:00:00 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: rspec-rails
@@ -43,14 +43,14 @@ dependencies:
43
43
  requirements:
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
- hash: 62196353
46
+ hash: 15424055
47
47
  segments:
48
48
  - 1
49
49
  - 0
50
50
  - 0
51
- - beta
51
+ - rc
52
52
  - 1
53
- version: 1.0.0.beta1
53
+ version: 1.0.0.rc1
54
54
  type: :runtime
55
55
  version_requirements: *id002
56
56
  description: Steak is a minimal extension of RSpec-Rails that adds several conveniences to do acceptance testing of Rails applications using Capybara. It's an alternative to Cucumber in plain Ruby.