Skip to content

Commit 46e5f6e

Browse files
committed
for Rails 3.0.8, conform to app generated by template
1 parent 61a3cbd commit 46e5f6e

File tree

8 files changed

+71
-62
lines changed

8 files changed

+71
-62
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ tmp/*
2222
*.rbc
2323
*.sassc
2424
.rspec
25+
.redcar/
2526
.sass-cache
2627
/config/config.yml
2728
/config/database.yml

Gemfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
source 'http://rubygems.org'
2-
gem 'rails', '3.0.7'
2+
gem 'rails', '3.0.8.rc2'
33
gem 'sqlite3'
4-
gem "rake", "0.8.7"
5-
gem "rspec-rails", "2.5.0", :group => [:development, :test]
4+
gem "rspec-rails", "2.6.1", :group => [:development, :test]
65
gem "factory_girl_rails", "1.1.beta1", :group => :test
7-
gem "cucumber-rails", "0.4.1", :group => :test
8-
gem "capybara", "0.4.1.2", :group => :test
6+
gem "cucumber-rails", "0.5.1", :group => :test
7+
gem "capybara", "1.0.0.beta1", :group => :test
98
gem "database_cleaner", "0.6.7", :group => :test
109
gem "launchy", "0.4.0", :group => :test
1110
gem "devise", "1.3.4"

Gemfile.lock

Lines changed: 45 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -2,45 +2,42 @@ GEM
22
remote: http://rubygems.org/
33
specs:
44
abstract (1.0.0)
5-
actionmailer (3.0.7)
6-
actionpack (= 3.0.7)
7-
mail (~> 2.2.15)
8-
actionpack (3.0.7)
9-
activemodel (= 3.0.7)
10-
activesupport (= 3.0.7)
5+
actionmailer (3.0.8.rc2)
6+
actionpack (= 3.0.8.rc2)
7+
mail (~> 2.2.19)
8+
actionpack (3.0.8.rc2)
9+
activemodel (= 3.0.8.rc2)
10+
activesupport (= 3.0.8.rc2)
1111
builder (~> 2.1.2)
1212
erubis (~> 2.6.6)
1313
i18n (~> 0.5.0)
1414
rack (~> 1.2.1)
1515
rack-mount (~> 0.6.14)
1616
rack-test (~> 0.5.7)
1717
tzinfo (~> 0.3.23)
18-
activemodel (3.0.7)
19-
activesupport (= 3.0.7)
18+
activemodel (3.0.8.rc2)
19+
activesupport (= 3.0.8.rc2)
2020
builder (~> 2.1.2)
2121
i18n (~> 0.5.0)
22-
activerecord (3.0.7)
23-
activemodel (= 3.0.7)
24-
activesupport (= 3.0.7)
25-
arel (~> 2.0.2)
22+
activerecord (3.0.8.rc2)
23+
activemodel (= 3.0.8.rc2)
24+
activesupport (= 3.0.8.rc2)
25+
arel (~> 2.0.10)
2626
tzinfo (~> 0.3.23)
27-
activeresource (3.0.7)
28-
activemodel (= 3.0.7)
29-
activesupport (= 3.0.7)
30-
activesupport (3.0.7)
27+
activeresource (3.0.8.rc2)
28+
activemodel (= 3.0.8.rc2)
29+
activesupport (= 3.0.8.rc2)
30+
activesupport (3.0.8.rc2)
3131
arel (2.0.10)
3232
bcrypt-ruby (2.1.4)
3333
builder (2.1.2)
34-
capybara (0.4.1.2)
35-
celerity (>= 0.7.9)
36-
culerity (>= 0.2.4)
34+
capybara (1.0.0.beta1)
3735
mime-types (>= 1.16)
3836
nokogiri (>= 1.3.3)
3937
rack (>= 1.0.0)
4038
rack-test (>= 0.5.4)
4139
selenium-webdriver (>= 0.0.27)
42-
xpath (~> 0.1.3)
43-
celerity (0.8.9)
40+
xpath (~> 0.1.4)
4441
childprocess (0.1.9)
4542
ffi (~> 1.0.6)
4643
configuration (1.2.0)
@@ -50,11 +47,11 @@ GEM
5047
gherkin (>= 2.3.8)
5148
json (>= 1.4.6)
5249
term-ansicolor (>= 1.0.5)
53-
cucumber-rails (0.4.1)
54-
cucumber (>= 0.10.1)
50+
cucumber-rails (0.5.1)
51+
capybara (>= 1.0.0.beta1)
52+
cucumber (>= 0.10.3)
5553
nokogiri (>= 1.4.4)
5654
rack-test (>= 0.5.7)
57-
culerity (0.2.15)
5855
database_cleaner (0.6.7)
5956
devise (1.3.4)
6057
bcrypt-ruby (~> 2.1.2)
@@ -90,33 +87,33 @@ GEM
9087
rack (>= 1.0.0)
9188
rack-test (0.5.7)
9289
rack (>= 1.0)
93-
rails (3.0.7)
94-
actionmailer (= 3.0.7)
95-
actionpack (= 3.0.7)
96-
activerecord (= 3.0.7)
97-
activeresource (= 3.0.7)
98-
activesupport (= 3.0.7)
90+
rails (3.0.8.rc2)
91+
actionmailer (= 3.0.8.rc2)
92+
actionpack (= 3.0.8.rc2)
93+
activerecord (= 3.0.8.rc2)
94+
activeresource (= 3.0.8.rc2)
95+
activesupport (= 3.0.8.rc2)
9996
bundler (~> 1.0)
100-
railties (= 3.0.7)
101-
railties (3.0.7)
102-
actionpack (= 3.0.7)
103-
activesupport (= 3.0.7)
97+
railties (= 3.0.8.rc2)
98+
railties (3.0.8.rc2)
99+
actionpack (= 3.0.8.rc2)
100+
activesupport (= 3.0.8.rc2)
104101
rake (>= 0.8.7)
105102
thor (~> 0.14.4)
106-
rake (0.8.7)
107-
rspec (2.5.0)
108-
rspec-core (~> 2.5.0)
109-
rspec-expectations (~> 2.5.0)
110-
rspec-mocks (~> 2.5.0)
111-
rspec-core (2.5.2)
112-
rspec-expectations (2.5.0)
103+
rake (0.9.0)
104+
rspec (2.6.0)
105+
rspec-core (~> 2.6.0)
106+
rspec-expectations (~> 2.6.0)
107+
rspec-mocks (~> 2.6.0)
108+
rspec-core (2.6.3)
109+
rspec-expectations (2.6.0)
113110
diff-lcs (~> 1.1.2)
114-
rspec-mocks (2.5.0)
115-
rspec-rails (2.5.0)
111+
rspec-mocks (2.6.0)
112+
rspec-rails (2.6.1)
116113
actionpack (~> 3.0)
117114
activesupport (~> 3.0)
118115
railties (~> 3.0)
119-
rspec (~> 2.5.0)
116+
rspec (~> 2.6.0)
120117
rubyzip (0.9.4)
121118
selenium-webdriver (0.2.0)
122119
childprocess (>= 0.1.7)
@@ -138,13 +135,12 @@ PLATFORMS
138135
ruby
139136

140137
DEPENDENCIES
141-
capybara (= 0.4.1.2)
142-
cucumber-rails (= 0.4.1)
138+
capybara (= 1.0.0.beta1)
139+
cucumber-rails (= 0.5.1)
143140
database_cleaner (= 0.6.7)
144141
devise (= 1.3.4)
145142
factory_girl_rails (= 1.1.beta1)
146143
launchy (= 0.4.0)
147-
rails (= 3.0.7)
148-
rake (= 0.8.7)
149-
rspec-rails (= 2.5.0)
144+
rails (= 3.0.8.rc2)
145+
rspec-rails (= 2.6.1)
150146
sqlite3

features/step_definitions/web_steps.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ def with_scope(locator)
3232
World(WithinHelpers)
3333

3434
# Single-line step scoper
35-
When /^(.*) within ([^:]+)$/ do |step, parent|
35+
When /^(.*) within (.*[^:])$/ do |step, parent|
3636
with_scope(parent) { When step }
3737
end
3838

3939
# Multi-line step scoper
40-
When /^(.*) within ([^:]+):$/ do |step, parent, table_or_string|
40+
When /^(.*) within (.*[^:]):$/ do |step, parent, table_or_string|
4141
with_scope(parent) { When "#{step}:", table_or_string }
4242
end
4343

features/support/env.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,14 @@
3737
raise "You need to add database_cleaner to your Gemfile (in the :test group) if you wish to use it."
3838
end
3939

40+
# You may also want to configure DatabaseCleaner to use different strategies for certain features and scenarios.
41+
# See the DatabaseCleaner documentation for details. Example:
42+
#
43+
# Before('@no-txn,@selenium,@culerity,@celerity,@javascript') do
44+
# DatabaseCleaner.strategy = :truncation, {:except => %w[widgets]}
45+
# end
46+
#
47+
# Before('~@no-txn', '~@selenium', '~@culerity', '~@celerity', '~@javascript') do
48+
# DatabaseCleaner.strategy = :transaction
49+
# end
50+
#

features/support/selectors.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ module HtmlSelectorsHelpers
88
def selector_for(locator)
99
case locator
1010

11-
when /the page/
11+
when "the page"
1212
"html > body"
1313

1414
# Add more mappings here.
1515
# Here is an example that pulls values out of the Regexp:
1616
#
17-
# when /the (notice|error|info) flash/
17+
# when /^the (notice|error|info) flash$/
1818
# ".flash.#{$1}"
1919

2020
# You can also return an array to use a different selector
@@ -26,7 +26,7 @@ def selector_for(locator)
2626
# This allows you to provide a quoted selector as the scope
2727
# for "within" steps as was previously the default for the
2828
# web steps:
29-
when /"(.+)"/
29+
when /^"(.+)"$/
3030
$1
3131

3232
else

public/javascripts/rails.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
enableSelector: 'input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled',
6565

6666
// Form required input elements
67-
requiredInputSelector: 'input[name][required],textarea[name][required]',
67+
requiredInputSelector: 'input[name][required]:not([disabled]),textarea[name][required]:not([disabled])',
6868

6969
// Form file input elements
7070
fileInputSelector: 'input:file',

public/stylesheets/application.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
12
ul.hmenu {
2-
list-style: none;
3+
list-style: none;
34
margin: 0 0 2em;
45
padding: 0;
56
}
67
ul.hmenu li {
7-
display: inline;
8+
display: inline;
89
}
910
#flash_notice, #flash_alert {
1011
padding: 5px 8px;
@@ -18,3 +19,4 @@ ul.hmenu li {
1819
background-color: #FCC;
1920
border: solid 1px #C66;
2021
}
22+

0 commit comments

Comments
 (0)