spinach-rails 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +8 -0
- data/features/steps/rails3/rails_3_1_app.rb +10 -3
- data/lib/spinach-rails/version.rb +1 -1
- data/lib/spinach-rails.rb +1 -1
- data/spinach-rails.gemspec +1 -1
- metadata +15 -14
data/.travis.yml
ADDED
@@ -1,21 +1,27 @@
|
|
1
1
|
require 'aruba/api'
|
2
2
|
|
3
|
-
|
3
|
+
class SpinachRails3_1 < Spinach::FeatureSteps
|
4
|
+
|
5
|
+
feature 'Spinach works with a Rails 3.1 app'
|
4
6
|
|
5
7
|
include Aruba::Api
|
6
8
|
|
7
9
|
Given "I create a new rails 3 app" do
|
8
10
|
create_rails_app('3.1')
|
9
11
|
end
|
12
|
+
|
10
13
|
And "I add spinach-rails to it" do
|
11
14
|
add_spinach_rails
|
12
15
|
end
|
16
|
+
|
13
17
|
And "I add some test features" do
|
14
18
|
add_test_features
|
15
19
|
end
|
20
|
+
|
16
21
|
When "I run spinach" do
|
17
22
|
run "spinach"
|
18
23
|
end
|
24
|
+
|
19
25
|
Then "the features should pass" do
|
20
26
|
stop_processes!
|
21
27
|
last_exit_status.must_equal 0
|
@@ -24,6 +30,7 @@ Feature 'Spinach works with a Rails 3.1 app' do
|
|
24
30
|
private
|
25
31
|
|
26
32
|
def create_rails_app(version = '3.1')
|
33
|
+
@aruba_timeout_seconds = 100
|
27
34
|
write_file(
|
28
35
|
'Gemfile',
|
29
36
|
" source :rubygems
|
@@ -38,7 +45,7 @@ Feature 'Spinach works with a Rails 3.1 app' do
|
|
38
45
|
end
|
39
46
|
|
40
47
|
def add_spinach_rails
|
41
|
-
append_to_file("Gemfile",
|
48
|
+
append_to_file("Gemfile",
|
42
49
|
"gem 'spinach-rails', group: :test, path: '#{Dir.pwd}'")
|
43
50
|
run "bundle install"
|
44
51
|
end
|
@@ -51,7 +58,7 @@ Feature 'Spinach works with a Rails 3.1 app' do
|
|
51
58
|
Then It should be all OK
|
52
59
|
")
|
53
60
|
write_file('features/steps/test_feature.rb',
|
54
|
-
"
|
61
|
+
"class TestFeature < Spinach::FeatureSteps
|
55
62
|
Given 'I am running spinach' do
|
56
63
|
visit '/'
|
57
64
|
end
|
data/lib/spinach-rails.rb
CHANGED
data/spinach-rails.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |gem|
|
|
9
9
|
gem.homepage = 'http://github.com/codegram/spinach-rails'
|
10
10
|
|
11
11
|
gem.add_runtime_dependency 'capybara'
|
12
|
-
gem.add_runtime_dependency 'spinach', '
|
12
|
+
gem.add_runtime_dependency 'spinach', '>= 0.1.5.2'
|
13
13
|
gem.add_runtime_dependency 'rails', '>= 3'
|
14
14
|
gem.add_development_dependency 'aruba'
|
15
15
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spinach-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-10-
|
12
|
+
date: 2011-10-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capybara
|
16
|
-
requirement: &
|
16
|
+
requirement: &2151937980 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,21 +21,21 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2151937980
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: spinach
|
27
|
-
requirement: &
|
27
|
+
requirement: &2151936140 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
|
-
- -
|
30
|
+
- - ! '>='
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
32
|
+
version: 0.1.5.2
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2151936140
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rails
|
38
|
-
requirement: &
|
38
|
+
requirement: &2151934500 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '3'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2151934500
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: aruba
|
49
|
-
requirement: &
|
49
|
+
requirement: &2151933060 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *2151933060
|
58
58
|
description: spinach-rails adds Rails support to spinach
|
59
59
|
email:
|
60
60
|
- info@codegram.com
|
@@ -64,6 +64,7 @@ extra_rdoc_files: []
|
|
64
64
|
files:
|
65
65
|
- .gitignore
|
66
66
|
- .rvmrc
|
67
|
+
- .travis.yml
|
67
68
|
- Gemfile
|
68
69
|
- Rakefile
|
69
70
|
- features/rails3/rails_3_1_app.feature
|
@@ -86,7 +87,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
86
87
|
version: '0'
|
87
88
|
segments:
|
88
89
|
- 0
|
89
|
-
hash:
|
90
|
+
hash: -3958383377693729444
|
90
91
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
91
92
|
none: false
|
92
93
|
requirements:
|
@@ -95,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
96
|
version: '0'
|
96
97
|
segments:
|
97
98
|
- 0
|
98
|
-
hash:
|
99
|
+
hash: -3958383377693729444
|
99
100
|
requirements: []
|
100
101
|
rubyforge_project:
|
101
102
|
rubygems_version: 1.8.6
|