phoenix_testing 0.2.0.beta → 0.2.1.beta
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/phoenix/tasks/testing.rake +1 -25
- metadata +33 -44
@@ -1,7 +1,7 @@
|
|
1
1
|
namespace :phoenix do
|
2
2
|
namespace :testing do
|
3
3
|
desc "Generates a dummy app for testing"
|
4
|
-
task :dummy_app => [:setup_dummy_app
|
4
|
+
task :dummy_app => [:setup_dummy_app]
|
5
5
|
|
6
6
|
task :setup_dummy_app do
|
7
7
|
require 'phoenix'
|
@@ -15,33 +15,9 @@ namespace :phoenix do
|
|
15
15
|
# load File.join(ENGINE_PATH, 'spec/dummy/config/environment.rb')
|
16
16
|
end
|
17
17
|
|
18
|
-
task :migrate_dummy_app do
|
19
|
-
engines = %w(
|
20
|
-
phoenix_core
|
21
|
-
phoenix_settings
|
22
|
-
)
|
23
|
-
|
24
|
-
task_params = [%Q{ bundle exec rake -f #{Phoenix::Testing::Railtie.target_engine_path.join('Rakefile')} }]
|
25
|
-
task_params << %Q{ app:railties:install:migrations FROM="#{engines.join(', ')}" }
|
26
|
-
task_params << %Q{ app:db:drop app:db:create app:db:migrate app:db:seed app:db:test:prepare }
|
27
|
-
task_params << %Q{ RAILS_ENV=development --quiet }
|
28
|
-
|
29
|
-
system task_params.join(' ')
|
30
|
-
end
|
31
|
-
|
32
18
|
desc "Remove the dummy app used for testing"
|
33
19
|
task :clean_dummy_app do
|
34
20
|
Phoenix::Testing::Railtie.target_engine_path.join('spec', 'dummy').rmtree
|
35
21
|
end
|
36
|
-
|
37
|
-
namespace :engine do
|
38
|
-
desc "Initialize the testing environment"
|
39
|
-
task :setup => [:init_test_database]
|
40
|
-
|
41
|
-
task :init_test_database => [
|
42
|
-
'app:db:migrate',
|
43
|
-
'app:db:test:prepare'
|
44
|
-
]
|
45
|
-
end
|
46
22
|
end
|
47
23
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phoenix_testing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1.beta
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,22 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2012-01-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
16
|
-
requirement: &
|
15
|
+
name: phoenix_core
|
16
|
+
requirement: &70324399187160 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - =
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 0.2.1.beta
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70324399187160
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
|
-
name:
|
27
|
-
requirement: &
|
26
|
+
name: rspec-rails
|
27
|
+
requirement: &70324399186300 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70324399186300
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
|
-
name:
|
38
|
-
requirement: &
|
37
|
+
name: capybara
|
38
|
+
requirement: &70324399185440 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70324399185440
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
49
|
-
requirement: &
|
48
|
+
name: factory_girl_rails
|
49
|
+
requirement: &70324399183120 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70324399183120
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
|
-
name:
|
60
|
-
requirement: &
|
59
|
+
name: launchy
|
60
|
+
requirement: &70324399182480 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70324399182480
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
71
|
-
requirement: &
|
70
|
+
name: database_cleaner
|
71
|
+
requirement: &70324399178220 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70324399178220
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
|
-
name:
|
82
|
-
requirement: &
|
81
|
+
name: rack-test
|
82
|
+
requirement: &70324399171300 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :runtime
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70324399171300
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
|
-
name:
|
93
|
-
requirement: &
|
92
|
+
name: fuubar
|
93
|
+
requirement: &70324399164200 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: '0'
|
99
99
|
type: :runtime
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *70324399164200
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
|
-
name:
|
104
|
-
requirement: &
|
103
|
+
name: rspec-instafail
|
104
|
+
requirement: &70324399163740 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ! '>='
|
@@ -109,10 +109,10 @@ dependencies:
|
|
109
109
|
version: '0'
|
110
110
|
type: :runtime
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *70324399163740
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: guard-rspec
|
115
|
-
requirement: &
|
115
|
+
requirement: &70324399163240 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ! '>='
|
@@ -120,18 +120,7 @@ dependencies:
|
|
120
120
|
version: '0'
|
121
121
|
type: :runtime
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
124
|
-
- !ruby/object:Gem::Dependency
|
125
|
-
name: phoenix_core
|
126
|
-
requirement: &70361803276380 !ruby/object:Gem::Requirement
|
127
|
-
none: false
|
128
|
-
requirements:
|
129
|
-
- - =
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: 0.2.0.beta
|
132
|
-
type: :runtime
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: *70361803276380
|
123
|
+
version_requirements: *70324399163240
|
135
124
|
description: This plugin adds the ability to run cucumber and rspec against the Pheonix
|
136
125
|
Engine project
|
137
126
|
email: lanvige@gmail.com
|