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.
@@ -6,7 +6,7 @@ $:.unshift lib unless $:.include?(lib)
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "framework_fixture"
9
- s.version = '0.2.1'
9
+ s.version = '0.2.2'
10
10
  s.platform = Gem::Platform::RUBY
11
11
  s.authors = ["Winton Welsh"]
12
12
  s.email = ["mail@wintoni.us"]
@@ -17,4 +17,8 @@ sinatra:
17
17
  - application.rb
18
18
  <2:
19
19
  sinatra:
20
- - application.rb
20
+ - application.rb
21
+ stasis:
22
+ <1:
23
+ stasis:
24
+ - test.html.erb
@@ -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 == {"rails"=>
27
- {"<3"=>
28
- {"rails2"=>
29
- ["app/controllers/application_controller.rb",
30
- "config/environment.rb",
31
- "config/routes.rb"]},
32
- "<4"=>
33
- {"rails3"=>
34
- ["app/controllers/application_controller.rb",
35
- "config/application.rb",
36
- "config/environments/test.rb",
37
- "config/routes.rb",
38
- "Gemfile"]}},
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
- unless ENV['STASIS']
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.1
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