Sha256: 990d81012f72a11f2ad2ceb7ee0410095e6a66466237d964f6b67550179602b9

Contents?: true

Size: 852 Bytes

Versions: 59

Compression:

Stored size: 852 Bytes

Contents

require File.dirname(__FILE__) + '/spec_helper'

describe RaveEmbed::WavePanel do
  describe "with custom site wide configuration" do
    
    before do
      class_instance = RaveEmbed::WavePanel
      
      class_instance.g_root_url = "http://mywave.acme.com"
      class_instance.g_dom_id = 'give_me_a_dom_id'
      class_instance.g_bg_color = 'green'
      class_instance.g_color = 'white'
      class_instance.g_font = 'Arial'
      class_instance.g_font_size = '12pt'
      class_instance.g_is_public = true
      class_instance.g_width = '800px'
      class_instance.g_height = '90%'
      class_instance.g_jquery = true
      @wave_panel = class_instance.new('my_id')
    end
    
    it "produces an html/javascript tag with all site-wide configs" do
      @wave_panel.to_html.should == load_fixture('fully_configured.html')
    end
  end
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
six-updater-web-0.24.15 lib/six-updater-web/vendor/plugins/rave_embed/spec/global_config_spec.rb
six-updater-web-0.24.14 lib/six-updater-web/vendor/plugins/rave_embed/spec/global_config_spec.rb
six-updater-web-0.24.13 lib/six-updater-web/vendor/plugins/rave_embed/spec/global_config_spec.rb
six-updater-web-0.24.12 lib/six-updater-web/vendor/plugins/rave_embed/spec/global_config_spec.rb
six-updater-web-0.24.11 lib/six-updater-web/vendor/plugins/rave_embed/spec/global_config_spec.rb
six-updater-web-0.24.10 lib/six-updater-web/vendor/plugins/rave_embed/spec/global_config_spec.rb
six-updater-web-0.24.9 lib/six-updater-web/vendor/plugins/rave_embed/spec/global_config_spec.rb
six-updater-web-0.24.8 lib/six-updater-web/vendor/plugins/rave_embed/spec/global_config_spec.rb
six-updater-web-0.24.7 lib/six-updater-web/vendor/plugins/rave_embed/spec/global_config_spec.rb
six-updater-web-0.24.6 lib/six-updater-web/vendor/plugins/rave_embed/spec/global_config_spec.rb
six-updater-web-0.24.5 lib/six-updater-web/vendor/plugins/rave_embed/spec/global_config_spec.rb
six-updater-web-0.24.4 lib/six-updater-web/vendor/plugins/rave_embed/spec/global_config_spec.rb
six-updater-web-0.24.3 lib/six-updater-web/vendor/plugins/rave_embed/spec/global_config_spec.rb
six-updater-web-0.24.2 lib/six-updater-web/vendor/plugins/rave_embed/spec/global_config_spec.rb
six-updater-web-0.24.1 lib/six-updater-web/vendor/plugins/rave_embed/spec/global_config_spec.rb
six-updater-web-0.24.0 lib/six-updater-web/vendor/plugins/rave_embed/spec/global_config_spec.rb
six-updater-web-0.23.7 lib/six-updater-web/vendor/plugins/rave_embed/spec/global_config_spec.rb
six-updater-web-0.23.6 lib/six-updater-web/vendor/plugins/rave_embed/spec/global_config_spec.rb
six-updater-web-0.23.5 lib/six-updater-web/vendor/plugins/rave_embed/spec/global_config_spec.rb
six-updater-web-0.23.4 lib/six-updater-web/vendor/plugins/rave_embed/spec/global_config_spec.rb