Sha256: a6544862f14776fd35aed92fa29d1c883dc7433a0d5050e00c4ab65ec5650ba9

Contents?: true

Size: 591 Bytes

Versions: 9

Compression:

Stored size: 591 Bytes

Contents

require 'spec_helper'

context Ajax do
  context "framework path" do
    it "should be /ajax/framework by default" do
      Ajax.framework_path.should_not be_nil
      Ajax.framework_path.should == '/ajax/framework'
    end

    it "should be able to be changed" do
      Ajax.framework_path = '/my/path'
      Ajax.framework_path.should == '/my/path'
    end
  end

  it "should have a root method" do
    Ajax.root.should == File.expand_path(File.join(File.dirname(__FILE__), '..', '..'))
  end
  
  it "should tell you the version" do
    Ajax.version.should =~ /\d+\.\d+.\d+/
  end  
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ajax-1.0.8 spec/ajax/ajax_spec.rb
ajax-1.0.7 spec/ajax/ajax_spec.rb
ajax-1.0.6 spec/ajax/ajax_spec.rb
ajax-1.0.5 spec/ajax/ajax_spec.rb
ajax-1.0.4 spec/ajax/ajax_spec.rb
ajax-1.0.3 spec/ajax/ajax_spec.rb
ajax-1.0.2 spec/ajax/ajax_spec.rb
ajax-1.0.1 spec/ajax/ajax_spec.rb
ajax-0.1.7 spec/ajax/ajax_spec.rb