Sha256: f23823f9bf1cfd28211203296f94b46aa51733e2b7b52d5ab87a77049ced2e84

Contents?: true

Size: 653 Bytes

Versions: 13

Compression:

Stored size: 653 Bytes

Contents

require 'spec_helper'

# Tests Rails app mounted by the command `jax server`. See Jax::Rails::Application.
# The app does nothing except mount Jax::Engine at "/".

describe "Jax::Rails::Application" do
  def app
    Jax::Rails::Application
  end
  
  it "should mount Jax dev suite at root" do
    get '/'
    follow_redirect! if last_response.redirect?
    last_response.should be_ok
    last_response.body.should match(/Jax Development Suite/)
  end
  
  it "should include Jax spec helpers in jasmine" do
    get '/jasmine'
    last_response.should be_ok
    last_response.body.should match(/src="\/spec\/jax_spec_environment_helper\.js"/)
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
jax-2.0.12 spec/lib/jax/rails/application_spec.rb
jax-2.0.11 spec/lib/jax/rails/application_spec.rb
jax-2.0.10 spec/lib/jax/rails/application_spec.rb
jax-2.0.9 spec/lib/jax/rails/application_spec.rb
jax-2.0.8 spec/lib/jax/rails/application_spec.rb
jax-2.0.7 spec/lib/jax/rails/application_spec.rb
jax-2.0.6 spec/lib/jax/rails/application_spec.rb
jax-2.0.5 spec/lib/jax/rails/application_spec.rb
jax-2.0.4 spec/lib/jax/rails/application_spec.rb
jax-2.0.3 spec/lib/jax/rails/application_spec.rb
jax-2.0.2 spec/lib/jax/rails/application_spec.rb
jax-2.0.1 spec/lib/jax/rails/application_spec.rb
jax-2.0.0 spec/lib/jax/rails/application_spec.rb