Sha256: 144dd9333166009768db87af5e1b0b498e951e46c19467e74755246aaddf90cf
Contents?: true
Size: 1.29 KB
Versions: 6
Compression:
Stored size: 1.29 KB
Contents
require File.expand_path("#{File.dirname(__FILE__)}/../../spec_helper") if FrameworkFixture.rails == '<3' describe 'Rails 2' do include Rack::Test::Methods def app FrameworkFixture.app.call end before(:all) do assets = "#{$root}/spec/fixtures/assets" pub = "#{$root}/spec/fixtures/builds/rails2/public" FileUtils.rm_rf "#{pub}/packaged" FileUtils.cp_r "#{assets}/compressed", "#{pub}/packaged" FileUtils.rm_rf "#{pub}/javascripts" FileUtils.cp_r "#{assets}/javascripts", "#{pub}/javascripts" FileUtils.rm_rf "#{pub}/stylesheets" FileUtils.cp_r "#{assets}/stylesheets", "#{pub}/stylesheets" end it "should have a pulse" do get "/pulse" last_response.body.should == '1' end if Rails.env == 'development' describe :development do it "should execute helpers correctly" do get "/test" last_response.body.should == File.read("#{$root}/spec/fixtures/development_output.txt") end end end if Rails.env == 'production' describe :production do it "should execute helpers correctly" do get "/test" last_response.body.should == File.read("#{$root}/spec/fixtures/production_output.txt") end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems