framework_fixture 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
data/framework_fixture.gemspec
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
<%= true %>
|
@@ -23,22 +23,24 @@ if FrameworkFixture.framework
|
|
23
23
|
describe :load_config do
|
24
24
|
|
25
25
|
it "should populate @config" do
|
26
|
-
FrameworkFixture.config.should == {
|
27
|
-
|
28
|
-
{"
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
26
|
+
FrameworkFixture.config.should == {
|
27
|
+
"rails"=>
|
28
|
+
{"<3"=>
|
29
|
+
{"rails2"=>
|
30
|
+
["app/controllers/application_controller.rb",
|
31
|
+
"config/environment.rb",
|
32
|
+
"config/routes.rb"]},
|
33
|
+
"<4"=>
|
34
|
+
{"rails3"=>
|
35
|
+
["app/controllers/application_controller.rb",
|
36
|
+
"config/application.rb",
|
37
|
+
"config/environments/test.rb",
|
38
|
+
"config/routes.rb",
|
39
|
+
"Gemfile"]}},
|
39
40
|
"sinatra"=>
|
40
41
|
{"<1"=>{"sinatra"=>["application.rb"]},
|
41
|
-
"<2"=>{"sinatra"=>["application.rb"]}}
|
42
|
+
"<2"=>{"sinatra"=>["application.rb"]}},
|
43
|
+
"stasis"=>{"<1"=>{"stasis"=>["test.html.erb"]}}}
|
42
44
|
end
|
43
45
|
end
|
44
46
|
|
@@ -94,7 +96,20 @@ if FrameworkFixture.framework
|
|
94
96
|
end
|
95
97
|
end
|
96
98
|
|
97
|
-
|
99
|
+
if ENV['STASIS']
|
100
|
+
describe "app.call" do
|
101
|
+
|
102
|
+
before :all do
|
103
|
+
@stasis = FrameworkFixture.app.call
|
104
|
+
@stasis.render
|
105
|
+
end
|
106
|
+
|
107
|
+
it "should render test markup" do
|
108
|
+
@stasis.destination.should == "#{$root}/spec/fixtures/builds/#{@framework}#{@exact_version}_output"
|
109
|
+
File.read("#{@stasis.destination}/test.html").should == 'true'
|
110
|
+
end
|
111
|
+
end
|
112
|
+
else
|
98
113
|
describe :rack_test do
|
99
114
|
|
100
115
|
it "should have a pulse" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: framework_fixture
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -132,6 +132,7 @@ files:
|
|
132
132
|
- spec/fixtures/rails3/routes.rb
|
133
133
|
- spec/fixtures/rails3/test.rb
|
134
134
|
- spec/fixtures/sinatra/application.rb
|
135
|
+
- spec/fixtures/stasis/test.html.erb
|
135
136
|
- spec/framework_fixture_spec.rb
|
136
137
|
- spec/spec_helper.rb
|
137
138
|
homepage: http://github.com/winton/framework_fixture
|
@@ -169,5 +170,6 @@ test_files:
|
|
169
170
|
- spec/fixtures/rails3/routes.rb
|
170
171
|
- spec/fixtures/rails3/test.rb
|
171
172
|
- spec/fixtures/sinatra/application.rb
|
173
|
+
- spec/fixtures/stasis/test.html.erb
|
172
174
|
- spec/framework_fixture_spec.rb
|
173
175
|
- spec/spec_helper.rb
|